-memory_model


This option specifies the type of the memory model when compiling.

[Specification format]

-memory_model={small|medium}

 

-

Interpretation when omitted

When the -cpu=S1 option is specified, small is assumed.

When the -cpu=S2 or -cpu=S3 option is specified, medium is assumed.

[Detailed description]

-

This option specifies the type of the memory model when compiling.

-

The following shows the memory model that can be specified.

Type

Memory Model

Description

small

Small model

The default attribute of both variables and functions is set to near.

medium

Medium model

The default attribute of variables is set to near and that for functions is set to far.

-

An error will occur if multiple types of the memory model are specified at the same time.

-

See "2.6.6 Relationship with near and far" for the relationship with near and far.

[Example of use]

-

To specify the small model as the type of the memory model when compiling, describe as:

>ccrl -memory_model=small -cpu=S2 -dev=dr5f100pj.dvf main.c