There was one question that talked about the direction of stack growth. To which Michael Burr, speaking in ARM processors, answered, the direction of stack growth can be configured, that is, the stack of downward (normal behavior) increases to zero address (lower address) in memory or to increase, i.e. The stack grows to a higher address in memory.
What is the direction of stack growth in most modern systems?
My question is: in ARM processors, how can I make the stack grow in the upstream direction?
How to configure the stack as ascending, by default it descends? Any set of register bits / reset, etc.
, ARM , , : LDM STM. , STMDB LDMIA , + : , , "STMFD" "LDMFD" . ( "" - , , )
, , : , , . , R13 , . , .
__ user_initial_stackheap(), SP, Stack-Start, Stack-End Heap-Start, Heap-End. , ARM .
, ( ). API, "UseCases", ARM926EJ-S.
.
, .
-hjsblogger
Hmmm thumb/thumb2 /, 2 ARM , , . , , ldmia ldmdb ( ) stmdb stmia. C, , , ? .
ARM, , , , , - , .