| delorie.com/archives/browse.cgi | search |
| From: | "John M. Aldrich" <fighteer AT cs DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: How much of the .EXE gets used? |
| Date: | Sat, 16 Aug 1997 23:26:42 +0000 |
| Organization: | Two pounds of chaos and a pinch of salt |
| Lines: | 23 |
| Message-ID: | <33F63732.4CBF@cs.com> |
| References: | <5t1dtp$oie AT news DOT network DOT com> <33F523D0 DOT 77D3 AT concentric DOT net> <5t42vq$9t6 AT salmon DOT maths DOT tcd DOT ie> |
| Reply-To: | fighteer AT cs DOT com |
| NNTP-Posting-Host: | ppp216.cs.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Steve no underscores wrote:
>
> Theres also some environment overhead. You can save a couple
> of kb by defining null bodies for them. Assuming of course
> you dont need them!
>
> D:\DJGPP\STEVE\PRED\MAIN.CC:__crt0_glob_function() { }
Be very careful with this one - it will crash your programs. The
startup code assumes that __crt0_glob_function() returns a pointer to
the expanded argument list; to disable it you must have it return a
NULL. Look up the prototype for the function in the libc docs.
> D:\DJGPP\STEVE\PRED\MAIN.CC:__crt0_load_environment_file() { }
> D:\DJGPP\STEVE\PRED\MAIN.CC:__crt0_setup_arguments() { }
--
---------------------------------------------------------------------
| John M. Aldrich | "Sin lies only in hurting other |
| aka Fighteer I | people unnecessarily. All other |
| mailto:fighteer AT cs DOT com | 'sins' are invented nonsense." |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |