Dear all, In my project,the internal ram is limit,but some state the ram can overlay,How can define the compiler or link option?such as following. +----------+ | area 1 | stateA | | | | |==========| stateB | area 1 | | & | overlay | area 2 | +----------+
Just search for "Overlay" in the compiler Manual. and if assembler, Just search for "Overlayable" in the assembler Manual. none of this works if optimization is set to less than 2 Erik
"some state the ram can overlay,How can define the compiler or link option?" Just search for "Overlay" in the compiler Manual.
Just select a high optimisation level and avoid global variables. The compiler will work it all out for you.
means: 0x3000~0x4000 used as some var Xa,Ya,Za,etc. when state A but also can used as var Xb,Yb,Zb,etc.when state B
View all questions in Keil forum