[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-gcc
Subject:    Re: Where starts the heap in Linux.
From:       "Martin v. Loewis" <martin () mira ! isdn ! cs ! tu-berlin ! de>
Date:       1999-08-08 7:14:35
[Download RAW message or body]

> I have to save/restore the heap space in my program.  The problem
> is, in linux, at which exact address the heap starts. Does heap
> start from a fixed address in linux?

No.The loads all segments of the executable image, and sets the brk
right after it. So it depends on the size of the executable where the
heap starts.

Regards,
Martin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic