Message-ID: <38DF12CB.E07D17D8@home.com> From: Mark & Candice White X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Raw Binary Files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 35 Date: Mon, 27 Mar 2000 07:50:34 GMT NNTP-Posting-Host: 24.0.127.127 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.mi.home.com 954143434 24.0.127.127 (Sun, 26 Mar 2000 23:50:34 PST) NNTP-Posting-Date: Sun, 26 Mar 2000 23:50:34 PST Organization: @Home Network To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I do not blame you but this actually off topic for djgpp, it is more a general gcc and x86 question, but here is some help. gcc -c test.c ld test.o -o test.bin -Ttext 0x0 -e main -oformat binary Try looking in these news groups: news:alt.os.assembly news:alt.os.development I know the following is not normal djgpp stuff so if you what to make a normal djgpp .exe, ignore the rest and stick to dos. I would suggest you consider using a known format rather than a raw bin. Using one will give your loader info like size of the code and data section, as well as the entry point into your code, which will move when you link multiple .o files together. The easy one to use for djgpp is the coff-a.out format, it is the one my loader uses now. The best solution is to get or make a copy of ld set to make elf format. It is over all a more flexible format. You do know that with no os under you, you will no longer be able to use most of the libs that make djgpp what it is. You will need to rewrite them for your os. I have some info listed on my sight. Hope this helps. ------------------------------------------ Mark & Candice White System programming hobbyists. http://members.home.net/mhewii/welcome.htm