Mail Archives: djgpp/1995/10/27/09:41:09
On Fri, 27 Oct 1995, Balea Mihai Sorin wrote:
> I was playing around with djgpp 1.12m4 ( gcc 2.6.3 ) when I noticed something
> quite strange. The resulting COFF file was different, although I compiled the
> same source file ( about 30 lines long ) under *the same* conditions ( meaning
> the same command line and the same environment ).Further browsing of the output
> revealed even stranger things. The end of COFF file was filled with a lot of
> apparently unnecessary stuff like functions identifiers and assembly labels.
> Even worse : in some cases I found a partial copy of my directory tree and/or
> pieces of C source. Worth mentioning : my program behaves identically each time
> I build it. And also, I did not include any debug info !
The identifiers from your program are the debugging info. You can strip
them (and make the image slimmer) with the strip.exe program, like this:
strip myprog
coff2exe myprog
The parts which seem like a directory structure are just a slack space
which DJGPP uses to make your image size a multiple of 4KB (presumably it
would then load faster). It is just filled with the first available
junk, so you don't have to worry about that.
- Raw text -