Re: [cc65] BSS Segment

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-08-25 19:44:32


On Monday 25 August 2003 19:43, Ullrich von Bassewitz wrote:
> On Mon, Aug 25, 2003 at 07:37:52PM +0200, Groepaz wrote:
> > mmmmh i wouldnt call it "uninitialized".... its not presetted with
> > certain data, but it IS initialized with zeros :o)
>
> It is used for data like
>
>         int i;
>
> which is not explicitly initialized by a C program.

yes ofcoz i know... but crt0 is supposed to initialize it to zeros... and its 
save to assume that with a correct implementation of C

int i;

main()
{
	printf("%d",i);
}

will always give you a zero.

uhmz well i know...probably a matter of the viewpoint....but for me its not 
"uninitialized" :)

gpz
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-08-25 19:48:23 CEST