IAR的数据放在三个地方:1.局部变量放在stack, 2.static 和全局放在static memory中,3还有一个heap,用来放动态分配的变量。我是怎么跳过这3个区呢?
● On the stack. This is memory space that can be used by a function as long as it is
executing. When the function returns to its caller, the memory space is no longer
valid.
● Static memory. This kind of memory is allocated once and for all; it remains valid
through the entire execution of the application. Variables that are either global or
declared static are placed in this type of memory. The word static in this context
means that the amount of memory allocated for this type of variable does not
change while the application is running.
● On the heap. Once memory has been allocated on the heap, it remains valid until it
is explicitly released back to the system by the application. This type of memory is
useful when the number of objects is not known until the application executes. Note
that there are potential risks connected with using the heap in systems with a limited
amount of memory, or systems that are expected to run for a long time.