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

how to store a variable in a particular memory location

we are designing DATA loggers for Railways. For that we are using 2468 ARM processor. while designing the system we have an issue that

all local variables should be stored in INTERNAL RAM (64k) & all GLOBAL VARIABLES
should be stored in EXTERNAL SDRAM.

is this feature available in KEIL ARM if so how to configure it.

Another one is how to STORE a variable in a particular memory location (global or local variable) in Keil compiler..

can any one help me.........

Parents
  • but everytime it is difficult to choose the diff address for diff varible.

    Which brings us right back to the original issue: Why do you believe you have to muck with that in the first place? The compiler and linker are quite perfectly capable of getting variable location right entirely without your "help". So why interfere with it?

Reply
  • but everytime it is difficult to choose the diff address for diff varible.

    Which brings us right back to the original issue: Why do you believe you have to muck with that in the first place? The compiler and linker are quite perfectly capable of getting variable location right entirely without your "help". So why interfere with it?

Children
  • The compiler and linker are quite perfectly capable of getting variable location right entirely without your "help".

    Yes. I always trusted the tools. Until they decided to put things in places that wasn't right for my hardware configuration.

    Truth is: the tools know about 'typical' hardware configurations. If you have something non-typical, then you can give the tools a little hint (or maybe, sometimes, a big kick).

    But before you do, you need to understand the details of what the tools do, what could be manipulated and how.