This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
NEWLIB requires the underlying function: "_sbrk" - in syscalls, In "OS" type environment, SBRK would call the operating system requesting more memory.
In an embedded system using NEWLIB - the SBRK function has (a) a pointer to the current end of the heap, it sort of works like this:
Newlib impliments it this way: (newlib source, libgloss, arm, syscalls.c)
You want to set a break point at _sbrk - and step through the code. Examine the addresses of variables as you do this.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |