Re: C, standards, and depending on them

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2005-04-01 19:37:11

On Fri, Apr 01, 2005 at 03:00:39PM +0200, Spiro Trikaliotis wrote:
> In fact, if I really rely on this behaviour (variables being
> initialized), I find it much better if I make this assumption explicit
> by writing the "= 0" after the definition of the variable. It does not
> harm and (hopefully) tells the programmer after me that this was done
> deliberately.

Well actually it does. Usually, initialized variables won't go into the bss
segment (even if they're zero), so the resulting executable gets bigger. This
can be an issue on small platforms, or on platforms with slow disk I/O (the
1541 comes to mind).

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.