Markking section of memory as do not use

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Markking section of memory as do not use

222 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jab on Thu Nov 03 12:27:08 MST 2011
Hi,


I wanted to know fit here is a way to tell the compiler to not to use a section of memory in the microcontroller.


Say for example I wanted to build a dynamically growing software stack, so i mark off 10k of memory which i can have a pointer to the base address and a pointer to the top of the stack.

How can i tell the compiler not to put any variables in that space, either marking it as do not use or fooling the compiler into thinking it doesnt exist.

Thanks,
Julian
0 项奖励
回复
1 回复

216 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by atomicdog on Thu Nov 03 17:26:26 MST 2011

Quote: jab
Hi,


I wanted to know fit here is a way to tell the compiler to not to use a section of memory in the microcontroller.


Say for example I wanted to build a dynamically growing software stack, so i mark off 10k of memory which i can have a pointer to the base address and a pointer to the top of the stack.

How can i tell the compiler not to put any variables in that space, either marking it as do not use or fooling the compiler into thinking it doesnt exist.

Thanks,
Julian


You can modify the linker scripts.
0 项奖励
回复