跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

What is written in a 24-bit address space from a C language program?

Latest Updated:12/01/2011

Question:

I want to access the data in a 24-bit address space (!!addr24) from a C language program.
What should I write the program?
Currently, during linking, the following error occurs.

*** ERROR F304 Operand out of range(segment'@@CODE',address xxxxH,type'!addr16')

During compilation, I use a medium model (-MM).

Answer:

Use a large model (-ML) instead of a medium model.
In the case of a medium model, only a 64K data space is supported.
Therefore, a medium model cannot be used to access data in a space larger than 64K.
To access data in a space of 64K or more, use a large model, which does not have such a limitation.
Suitable Products