You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use programs that do not fit within the 2 MiB default size, it is necessary to manually set the heap and stack locations, e.g., for a 64 MiB memory (0x04000000 addresses), the symbols may be defined as
i.e., the heap ends at half the memory size (the heap start is set by the compiler as right after the program), the stack for the first core starts at the end of the memory, and the size of the stack is 0x04000000-0x03ff8000=32 KiB. The second core's stack the starts at 0x03ff8000 and so on.
This can be difficult for users to know and decide on. Another approach is to let the compiler know the memory size, address spaces that are reserved/off limits and the stack size, and then let the compiler decide where to place the heap and stack.
The text was updated successfully, but these errors were encountered:
When we use programs that do not fit within the 2 MiB default size, it is necessary to manually set the heap and stack locations, e.g., for a 64 MiB memory (0x04000000 addresses), the symbols may be defined as
i.e., the heap ends at half the memory size (the heap start is set by the compiler as right after the program), the stack for the first core starts at the end of the memory, and the size of the stack is 0x04000000-0x03ff8000=32 KiB. The second core's stack the starts at 0x03ff8000 and so on.
This can be difficult for users to know and decide on. Another approach is to let the compiler know the memory size, address spaces that are reserved/off limits and the stack size, and then let the compiler decide where to place the heap and stack.
The text was updated successfully, but these errors were encountered: