Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Moving stack from TCM to external DDR2 SDRAM
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
3117 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Moving stack from TCM to external DDR2 SDRAM
Kevin Schaffer
over 12 years ago
Parents
Gilead Kutnick
over 12 years ago
Note: This was originally posted on 23rd November 2011 at
http://forums.arm.com
SP points to the last thing that was allocated on the stack, unless the stack is empty, in which case it points right past the stack. So if you allocate 3 words in a function they'll be accessible at [ sp ], [ sp + 4 ], and [ sp + 8 ]. The allocation itself will be performed by subtracting 12 from the stack pointer. Unallocated memory starts immediately at addresses below the stack pointer.
Cancel
Vote up
0
Vote down
Cancel
Reply
Gilead Kutnick
over 12 years ago
Note: This was originally posted on 23rd November 2011 at
http://forums.arm.com
SP points to the last thing that was allocated on the stack, unless the stack is empty, in which case it points right past the stack. So if you allocate 3 words in a function they'll be accessible at [ sp ], [ sp + 4 ], and [ sp + 8 ]. The allocation itself will be performed by subtracting 12 from the stack pointer. Unallocated memory starts immediately at addresses below the stack pointer.
Cancel
Vote up
0
Vote down
Cancel
Children
No data