delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/05/17:36:50

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: what's the size of the DJGPP stub + .EXE header?
Date: Sun, 03 Aug 1997 15:34:18 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 29
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33E4DD3A.407E@cornell.edu>
References: <33E4A623 DOT 3A94FC62 AT execulink DOT com>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0067.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jeff Weeks wrote:
> 
> I need to know the size of the DJGPP stub plus the .EXE header.  In 
> most compilers, to get a flat binary file, you simply strip the first 
> 512 bytes (which would be the .EXE header) from the resultant 
> executable.

AFAIK, it 2048 bytes.

by the way, if all you want is the coff file, you can do

gcc filename.c -o filename.out

and you file get the executable in filename.exe and the coff file in
filename.out. for more on invocation options, see 

info gcc invoking

-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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