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

put const variables into code-segment

Hi.

I want to put a (large) table of constant values into the code-segment, because I'm very low on RAM but have plenty of program-ROM.

The C51-manual on page 88 says "Constant variables may also be stored in program memory".

How is this possible?

Thanks, Patrick

Parents
  • I haven't used the C51 compiler for a while but when I last did (V6.2) there was a directive 'code' that I used instead of const. This build tables in the code memory space.
    I hope this helps

    PhilipJ

Reply
  • I haven't used the C51 compiler for a while but when I last did (V6.2) there was a directive 'code' that I used instead of const. This build tables in the code memory space.
    I hope this helps

    PhilipJ

Children