comp.lang.ada
 help / color / mirror / Atom feed
From: "Steven Deller" <deller@smsail.com>
Subject: RE: Howto debug seg-faulting Ada 95 code?
Date: Sat, 7 Sep 2002 13:50:11 -0500
Date: 2002-09-07T13:50:11-05:00	[thread overview]
Message-ID: <mailman.1031424722.8421.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <87wuq3wb7p.fsf@inf.enst.fr>

To be precise:
  text : is ANY read-only item, both code and data constants
  data : is read-write items with an initial value (on systems that
permit code to modify itself, any code that is modified goes here with
data)
  bss  : is read-write without an initial value (it is NOT required to
be initialized to zero, but is on many systems).
  ...

> -----Original Message-----
> From: comp.lang.ada-admin@ada.eu.org 
> [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Samuel Tardieu
> Sent: Tuesday, September 03, 2002 6:43 AM
> To: comp.lang.ada@ada.eu.org
> Subject: Re: Howto debug seg-faulting Ada 95 code?
> 
...
> Yup, exactly. In general, you have the following memory areas 
> when you execute a program: (the first three usually come 
> from the executable file if this has any sense in your environment)
> 
>   + text:   contains executable code
>   + data:   contains pre-initialized data
>   + bss:    same as data, but content is initialized to zero 
> (convenient
>             to avoid storing those zeroes in the executable file)
>   + heap:   where your global allocations come from
>   + stacks: not shared between thread of controls (each one may have
>             several stacks) - those stacks may be allocated 
> in the heap
>             or may be separate
> 
>  Sam

> 




  reply	other threads:[~2002-09-07 18:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-31  7:58 Howto debug seg-faulting Ada 95 code? Karl Ran
2002-08-31  8:14 ` Florian Weimer
2002-09-02 15:05   ` Karl Ran
2002-09-02 16:25     ` Jeffrey Creem
2002-09-02 16:47       ` Pat Rogers
2002-09-02 22:40         ` Jeffrey Creem
2002-09-02 23:25           ` Pat Rogers
2002-09-03 11:20             ` Jeffrey Creem
2002-09-04 14:57               ` Pat Rogers
2002-09-03  8:51       ` Sergey Koshcheyev
2002-09-03 11:42         ` Samuel Tardieu
2002-09-07 18:50           ` Steven Deller [this message]
2002-09-02 21:35     ` Florian Weimer
2002-09-03  9:11       ` Karl Ran
2002-09-03  2:27 ` David C. Hoos, Sr.
2002-09-03  9:38   ` Karl Ran
2002-09-03 12:15     ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox