From: Daniel Kahlin (tlr_at_stacken.kth.se)
Date: 2005-04-02 15:07:23
On Fri, 1 Apr 2005, Ullrich von Bassewitz wrote: > On Fri, Apr 01, 2005 at 09:36:33PM +0200, Daniel Kahlin wrote: >> I don't think the standard specifies that initialized variables should go >> to the data segment instead of bss. > > No, it does not. This is why I wrote "usually" :-) Ah, missed that. Still, I think this optimization shouldn't be too hard to implement in a compiler. Commenting on the original post: I think it's nicer to specify initial values explicitly for clarity, although you should be able to rely on the C-standard if you need to. /Daniel Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.