how to store large array in program memory in IAR

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everyone,

I want to store a large array in program memory in IAR.

there are some location, @ keywords but I don't know they would help me or not.

__far keyword is also giving error.

what should I do?

thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

what should I do?

Contact IAR perhaps? The reason you paid $3,000 for the compiler is to guarantee you get quick answers to questions like this.

BTW I would have thought that you would just use "__flash" and a "large memory model" and the compiler would handle the creation of necessary far pointers and so on?

EDIT: sorry a quick google says IAR has a __far modifier. So I guess the data (or rather the pointer to it) is "__far __flash *" ?