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

Absolute memory addressing with C166

How can I place constants and variables to specific addresses in the FLASH and RAM ?
Is there an equivalent for the C166 compiler like the _at_ <addr> which exists for the C51 compiler.

I am sure there must be a more comfortable way instead of declaring the identifiers in a stand-alone C module and using the location control directives.

Thanks for any comments and hints.
Chris Schnyder

Parents
  • One thing that comes to mind is using assembler and it's absolute address locating capabilities. Hopefully you'll be able to isolate all the 'absolute' stuff in a single .A66 file and avoid using linker controls. I'm not sure about data type compatibility between assembler and C, though.

    Just a thought.

    - mike

Reply
  • One thing that comes to mind is using assembler and it's absolute address locating capabilities. Hopefully you'll be able to isolate all the 'absolute' stuff in a single .A66 file and avoid using linker controls. I'm not sure about data type compatibility between assembler and C, though.

    Just a thought.

    - mike

Children