Mail Archives: djgpp/1998/05/20/15:32:23
"Tony Kao" <MacGyver AT ms11 DOT accmail DOT com DOT tw> wrote:
> I just downloaded the gcc 2.8.1 and tried to compile the famous "Hello"
> program. the following is the program:
>
> #include <iostream.h>
>
> main()
> {
> cout << "Hello, DJGPP !!\n";
> }
>
> with the compile option: gcc -o hello.exe hello.cpp -lstdcx
> I found the execution file size is 386560 bytes, which is much bigger than
> gcc 2.7.2 outputs. For gcc 2.7.2 the execution file size for the same
> program is 187675 bytes.
You MUST strip the debug information. Add -s to the gcc command line or run
strip hello.exe.
GCC 2.8.x generates a huge amount of debug information, in fact I'm thinking
about going back to 2.7.2 because the memory needed to debug my program is
huge.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -