help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Huge binaries. g++ 3.2.2 on SCO 3.2v5.05


From: John
Subject: Huge binaries. g++ 3.2.2 on SCO 3.2v5.05
Date: 10 May 2004 10:17:25 -0700

After replacing g++ version 2.95.3 with g++ 3.2.2 my binary sizes have
become extremely large on SCO 3.2v5.05.
Only C++ binaries are like this, C compiles are fine (less than 6K for
hello world).


The bin utils package will not build a linker for my SCO platform so I
am using the SCO linker for both g++ compilers.

Hello world generates the following sizes using only the -s flag

g++ 2.95.3 compiler
object code: hello.o 1864   bytes
binary:      hello   87728  bytes     

g++ 3.2.2 compiler
object code: hello.o 1056   bytes
binary:      hello   307516 bytes


The -Os flag does not help.


source code:

#include <iostream>
using namespace std;
int main()
{
   cout << "Hello World\n";
   return 0;
}



Thanks for any help.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]