delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/08/16:54:01

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Authenticated: #10658336
Mime-Version: 1.0 (Apple Message framework v618)
In-Reply-To: <ui1dh016me4c079jlsl5rhgjlfq67p4f9f@4ax.com>
References: <E94D7E69-E940-11D8-9F0B-003065C18A1C AT gmx DOT ch> <ui1dh016me4c079jlsl5rhgjlfq67p4f9f AT 4ax DOT com>
Message-Id: <F14EF265-E97C-11D8-889C-003065C18A1C@gmx.ch>
From: =?ISO-8859-1?Q?Werner_Sch=F6nenberger?= <werner DOT schoenenberger AT gmx DOT ch>
Subject: Re: Sequence of Symbol Allocation
Date: Sun, 8 Aug 2004 22:53:04 +0200
To: djgpp AT delorie DOT com
X-Mailer: Apple Mail (2.618)
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi Brian,

thank you for the information. Unfortunately almost all code is written 
in assembler which also doesn't make it easy to understand and to find 
all the traps. But nevertheless to check out GCC might help to find a 
solution.

Thanks again
Werner

>
> If the application uses C code and normal C startup code, allocating
> those variables as if they were C extern in the BSS segment will cause
> them to be zeroed at program initialization.
> Alternatively, look at how GCC handles BSS zeroing, for an example of
> how to do it properly, by arranging symbols with the linker.
>
> -- 
> Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada
>
> Brian DOT Inglis AT CSi DOT com 	(Brian dot Inglis at SystematicSw dot ab dot ca)
>     fake address		use address above to reply
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019