Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

why empty program produces large size executable file ?

main()
{
}

Open in new window


gcc filename.c

Why executable file is 89,886 bytes ?
Avatar of chaau
chaau
Flag of Australia image

I think you have forgotten to link your object code. Try adding
-o myprogram

Open in new window

at the end of your command line and see what is being produced
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial