From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Compile in raw binary Date: Fri, 07 Apr 2000 19:44:05 +0400 Organization: MTU-Intel ISP Lines: 39 Message-ID: <38EE0245.6C580B85@mtu-net.ru> References: <8ck4q5$oob$1 AT mail DOT pl DOT unisys DOT com> NNTP-Posting-Host: ppp96-13.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 955122391 6889 212.188.96.13 (7 Apr 2000 15:46:31 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 7 Apr 2000 15:46:31 GMT X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You need JLOC. It's a free linker/locator by John Fine: It relocates your OBJ file to any location (and 0 as well just in .COMs) and outputs raw file. URL=http://www.erols.com/johnfine/ Good Luck Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru Aquaz wrote: > > Hi all! > I'm a c/c++ developer but new about djgpp compiler. > Is it possible compile a simple c code into raw binary x86 opcodes, similar > the .COM file? > I explain better: > > if I have a program like: > > int main(void) { > register x; > x = 0; > ... > return(0); > } > > Can i build it to have a file like: > B8 00 00 ... CB > (that would be "mov ax, 0 ... retf" ) > > So, is there some gpp command flags that builds in this way? > I hope I explain as clear as possible my question. > Thank's in advance! > > Aquaz