www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/13/09:49:08

Date: Tue, 12 May 1998 15:15:41 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: John Kismul <john DOT kismul AT bergen DOT mail DOT telia DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Pure binary output with GCC
In-Reply-To: <35586F33.13E8@bergen.mail.telia.com>
Message-Id: <Pine.LNX.3.91.980512151113.2937C-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0


> Is it possible to make GCC output pure binary files just like NASM does?

To the best of knowlege, NASM outputs pure binary (I take it you mean 
.exe, right?) only for 16-bit code. DJGPP on the other hand is a 32-bit 
programming platform.

If you do want to generate 32-bit exe's you will have to do a lot of 
housekeeping (create stack, transfer buffers,...) etc in your code. You 
can have a look at how crt0.s does this.

I hope this helps
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019