As I can see, the keil compiler doesnt use regular stack for functions, and all the local variables inside functions are mapped in global memory. Is there a way, to make it behaive like a normal program should? I.E - create a local variables in ram,and destroy them, when the function ends? Thank you.
"Excuse me, but I have only 8k Ram,and i care less about couple of ms." no you have only 248 bytes at max for stack Stack is always in IRAM on x51. So putting local vars on stack might be a bad idea. Thomas
Okay. So the only way is to define myself a pool of memory in global area , and use it from functions. Thank you.
Stack is always in IRAM on x51. Odd, the ADuC 8xx family can put the stack in XRAM.