Mail Archives: djgpp/1997/05/02/16:02:42
Mike (mike AT itlnet DOT net) wrote:
: I've recently started using djgpp (yes, I've read the FAQs). It works fine,
: but I've noticed that my exe file sizes seem to be very large. Much larger than
: it would seem normal, and larger than the same source file compiled by another
: compiler.
: For instance, I recently compiled a short routine using Borland Turbo C++
: and it came out to about 15k. I then compiled the same routine with djgpp and
: it came out to almost 144k!
: Does anyone know why this might be happening? And, more importantly, how I
: might be able to decrease my exe file size?
There's a lot of debugging information in the file. Try either running
`strip' on the executable, or adding `-s' to the gcc/gxx command line when
you are linking your program.
However, you are compiling a very short program, and it isn't really fair
to make the comparison on such a piece of code. For an accurate
comparison you should use a longer program.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -