Storing constants in program memory not working?

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
kerrtronics
Posts: 2
Joined: 30 Dec 2019 21:06

Storing constants in program memory not working?

#1 Post by kerrtronics » 30 Dec 2019 21:13

Hi,

I'm trying to store some constants in program memory using the memory type specifier "code" but it doesn't seem to be working. I'm new to using the MikroE Pascal compiler, so I'm not sure if I'm doing it correctly or not.

Here is my code sample:

Code: Select all

const
     MAGIC   = $55; code;
     VERSION = '1.0'; code;
     DATE    = '2019-12-27'; code;
Based on the compiler help file. It seems that these should be stored in program memory, but they are not there when I compile the code.

How would I store these in program memory? Thanks!

Post Reply

Return to “mikroPascal PRO for AVR General”