php4-beta | 199912
Date: 12/23/99
- Next message: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 TODO"
- Previous message: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- In reply to: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Next in thread: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Reply: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Reply: Paul DuBois: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 23 Dec 1999, Thies C. Arntzen wrote:
> On Thu, 23 Dec 1999 zeev <email protected> wrote:
>
> > On Thu, 23 Dec 1999, Thies C. Arntzen wrote:
> >
> > > remember - global variables are usually zeroed when the program loads:
> > >
> > > #include <stdio.h>
> > > int not_reported;
> > > main()
> > > {
> > > int reported;
> > > printf("%d\n",not_reported);
> > > printf("%d\n",reported);
> > > }
> > >
> > > purify will not report not_reported 'cause the crt *will* initialize it to
> > > zero!
> >
> > I think it's a purify bug then.
>
> sorry, you're wrong:
>
> bss section
> -----------
>
> This section contains zeroed bytes when your program begins running. It is
> used to hold unitialized variables or common storage. The length of each
> partial program's bss section is important, but because it starts out
> containing zeroed bytes there is no need to store explicit zero bytes in
> the object file. The bss section was invented to eliminate those explicit
> zeros from object files.
This is specific to Solaris, I think. AFAIK, the C standard doesn't say
that globals are zerod if not explicitly initialized (the C++ standard
says that about static member variables, but that's about it).
> s/c/s/g ??
Huh?
Zeev
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Sascha Schumann: "Re: [PHP4BETA] cvs: /php4 TODO"
- Previous message: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- In reply to: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Next in thread: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Reply: Thies C. Arntzen: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Reply: Paul DuBois: "Re: [PHP4BETA] TSRM problems... UMBRs everywhere:-(("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

