From mboxrd@z Thu Jan 1 00:00:00 1970 From: Halil Demirezen Subject: FDC and compilation parameters. Date: Fri, 21 May 2004 08:39:58 +0300 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20040521053958.GA31128@bilmuh.ege.edu.tr> Mime-Version: 1.0 Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-newbie@vger.kernel.org I am trying to write some test kernels to get the whole concept concrete. I am writing *.s and *.c codes all together. However, I could not find the exact CFLAGS to compile. Should I use -O2 or -fomit-frame-pointer... What do you offer me ? The kernel will be written in C ( some parts are asm) and there is no compression. I am linking it with using ld -Ttext 0x10000 -s --oformat binary -o test.bin test.o and writing it to the floppy as below: dd obs=512 seek=6 if=test.bin of=/dev/fd0 However, there are some unexpected faults and the machine reboot. I am using I386 by the way ;). And can anyone tell me where I can find a good document telling how to program FDC. All the staff i found on net is confusing.. Thanks. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs