From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: Howto debug seg-faulting Ada 95 code?
Date: Tue, 03 Sep 2002 13:42:50 +0200
Date: 2002-09-03T13:42:50+02:00 [thread overview]
Message-ID: <87wuq3wb7p.fsf@inf.enst.fr> (raw)
In-Reply-To: al1t7e$1idk$1@ns.felk.cvut.cz
>>>>> "Sergey" == Sergey Koshcheyev <serko84@hotmail.com> writes:
Sergey> I would say that x86 compilers place library-level data in
Sergey> data sections, initialized or unininitialized. This is the
Sergey> best place for them, and data sections aren't stack nor heap,
Sergey> they're something else :-) I don't know about other
Sergey> architectures, but I suspect the placement of global data is
Sergey> similar there.
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
--
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam
next prev parent reply other threads:[~2002-09-03 11:42 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 [this message]
2002-09-07 18:50 ` Steven Deller
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