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: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: =?ISO-8859-1?Q?Werner_Sch=F6nenberger?= 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 Precedence: bulk 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 >