From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jaswinder S. Ahluwalia" To: gnu@gnu.org Subject: gcc and g++ producing large executables Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <200003162028.PAA32127@delysid.gnu.org> X-SW-Source: 2000-q1/msg00388.html Message-ID: <20000401000000.b__hBoixhEImqx3OVU440rv22NRy4XQyD5Pwh528niU@z> Hi, When i compile the following program using g++ (gcc version 2.95.1 19990818 (release)), the executable size is 855 kb. My OS is HP-UX 11.00. Besides using the strip command, is there anyway that i can reduce the size of the executable? The following is the program that produces a 855kb executable: #include int main() { cout << "Hello World!" << endl; return 0; } I have tried posting to news groups, writing to hp, checking on irc channels, yet no one can provide a solution to this problem. Please advise. Thank you very much. jas