Hi Arkady, I would vote for the "explicit zero" in this
case. As far as I remember, zeroing out the BSS at start
is a compiler option, so when somebody switches that off,
we would have a problem. Blair has been able to reduce
size a lot at other places already, for example by removing
all conio dependencies :-).

Eric

> ... (Blair Campbell) wrote to
> [EMAIL PROTECTED]:
>
> BC> +++ init.c  11 Jun 2006 02:47:05 -0000      1.28
> BC> +static int showhelp = 0, internalBufLen = 0, inputBufLen = 0,
> BC> +           spawnAndExit = E_None, newEnvSize = 0, skipAUTOEXEC = 0;
> BC> +/* static int newEnvSize = 0;          Min environment table size */
> BC> +static char *user_autoexec = 0;
>
>      Explicit (zero) initialization is affects executable size (unless
> compiler is smart enough to move explicit zero-initialization to BSS
> segment). So, text about should look so (if you wish to reduce executable
> size in any case):
>
> static int
>   showhelp /*= 0*/,
>   internalBufLen /*= 0*/,
>   inputBufLen /*= 0*/,
>   spawnAndExit = E_None,
>   newEnvSize /*= 0*/,           /* Min environment table size */
>   skipAUTOEXEC /*= 0*/;
> static char
>   *user_autoexec /*= 0*/;


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to