This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc and g++ producing large executables
- To: gnu at gnu dot org
- Subject: gcc and g++ producing large executables
- From: "Jaswinder S. Ahluwalia" <jahluwal at cs dot ucr dot edu>
- Date: Wed, 08 Mar 2000 16:33:47 -0800
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<iostream.h>
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