Mail Archives: djgpp/1998/03/01/10:32:43
Mr. X wrote:
> Yes there is, but I don't remember it off the top of my head. You
> can just "strip prgname.exe" on your releases.
the command line option happens to be -s, use strip --strip-all
progname.exe on the final executable, or read the other options.
> Incredibly, it's
> normal to have large executables from C. If any function is used, the
> whole lib is linked, even if none of the other functions are called.
> And, when you explicitly link in other stuff, it links whatever you
> tell it to link, never checking if anything is used. DJGPP does this
> 'cause GCC does it and GCC does it because the other C compilers do it
> and they did it cause K&R did it. So much for progress eh? ;)
this is the biggest load of bull i have seen in quite a while. the
reasons why djgpp programs produce somewhat larger executables are
specified in the faq and in a gazillion previous threads which you can
search and read to your heart's content at http://www.delorie.com/djgpp/
linking is done on a module-by-module basis, so it is entirely up to you
to determine how finely grained it will be.
but then, why would anyone think a Mr. X from Las Vegas would post
correct information?
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -