This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

local variables

suppose if i declare a local variable, where it will be stored? RAM/ROM?

Parents
  • In Keil, it will be stored wherever you've told the compiler to put it. By default, everything will be placed in RAM unless you've told it to put it in ROM via the "code" keyword. You need to read the compiler manual for simple things like this.

Reply
  • In Keil, it will be stored wherever you've told the compiler to put it. By default, everything will be placed in RAM unless you've told it to put it in ROM via the "code" keyword. You need to read the compiler manual for simple things like this.

Children