English
Language : 

CC78K4 Datasheet, PDF (287/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
11.3 Memory
The memory model is determined by the memory space of the target device.
(1) Memory model
A maximum of 1 MB of program memory space and a maximum of 16 MB of data memory space are available
(for the memory map, refer to the user’s manual of each target device).
This compiler has the three types of memory models: small, medium, and large. Objects are changed and output
by specifying each memory model option. For details of each model, refer to Table 11-2.
Table 11-2. Memory Model
Memory Model (Option)
Small model (-MS)
Medium model (-MM)
Large model (-ML)
Explanation
A model with a combined code/data block capacity of 64
KB.
A model with a capacity of up to 1 MB for the code block
and 64 KB for the data block
A model with a combined code/data block capacity of 16
MB, including up to 1 MB for the code block and 16 MB for
the data block.
(2) Register bank
• The register bank is set to ‘RB0’ at startup (set in the startup routine of this compiler). Register bank 0 is
made always used (unless the register bank is changed) by this setting.
• The specified register bank is set at the start of the interrupt function that has specified the change of the
register bank.
(3) Location function
• With the large model or medium model, the location function (-CS option) allows changing the location of the
internal RAM (including saddr area and sfr area) between 64 KB (LOCATION 00H) and 1024 KB (LOCATION
0FH) (with the small model, the location of the internal RAM is fixed to 64 KB). For the -CS option, refer to the
CC78K4 C Compiler Operation User’s Manual (U15557E).
User’s Manual U15556EJ1V0UM
287