From: "A. Sinan Unur" 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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. *******************************************************************