Main

11.1 EDK - How do we know the start address of the heap and stack sections?

AR# 29981

Search For Another Answer

Topic EDK-GNU
Last Updated 04/28/2009
Status Active
Description

Keywords: start, address, heap, stack, section, ELF, MAP

How do we know the start address of the heap and stack sections?

Solution

- Heap and stack sections are listed in the memory MAP that XMD reports when the software application (the ELF file) is downloaded.

- Adding the compiler option " -Wl,-Map -Wl,main.map " for that particular application generates a MAP file in the project location which helps to check with the start address of the stack and the heap locations.


 
 
/csi/footer.htm