delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/28/20:00:18

Message-ID: <338CF04B.EFB@tiac.net>
Date: Wed, 28 May 1997 19:56:11 -0700
From: Claude Sassine <claude AT tiac DOT net>
MIME-Version: 1.0
To: Help Djgpp <djgpp AT delorie DOT com>
Subject: Size of executable too large.

I compiled a 699-byte file and got a 140KB executable. This led to look
at the FAQ files. The FAQ mentions two possible remedies for the size
problem. The -s switch brought the executable's size down to 68KB. The
other option stated:

"If your program doesn't need parts of the startup code, it can be made
smaller by defining certain functions with empty bodies.  These
functions are `__crt0_glob_function', `__crt0_load_environment_file',
and `__crt0_setup_arguments.'..."

I am not sure what is meant by empty bodies, supposedly:

#define __crt0_glob_function 
#define __crt0_load_environment_file
#define __crt0_setup_arguments 

or undefining it in some way. Even if this is true, judging from the
size hello.c file in comparison to the size of its executable, the
compiler still generates an enormous output. I wonder what steps to
take.

							Thank you
-- 
Claude Sassine
"It is impossible to make anything foolproof, because fools are so
ingenious."
								Roger Berg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019