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

Not enough in RL78 RAM, could codes in startup routine be deleted?

Latest Updated:09/06/2013

Question:

I am using the RL78/78K0R compiler in the CubeSuite+ environment.
Since there is not enough RAM, could codes in the startup routine that is provided by default be deleted?

Answer:

The startup routine that is provided by default has allocated and fixed approximately 100 bytes of RAM with consideration for the amount used by the following library functions.

If the user program does not use these library functions, making the following setting with the build tool allows selection of a startup routine that does not allocate the RAM area used by these library functions.

  • Relevant library functions
    Standard libraries
    brk,sbrk,malloc,calloc,realloc,free,exit,rand,srand,div,ldiv,strtok,atof,strtod,
    Mathematical functions
    Floating-point runtime library

  • Build tool setting
    From the Property panel of the build tool, select "No" in [Compile Options] tab -> [Startup] -> [Use fixed area used by standard library].
Suitable Products
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 and 78K Families
Compiler for RL78 Family and 78K0R [CA78K0R]
Compiler for 78K0R [CC78K0R]
Compiler for 78K0 [CA78K0]
Compiler for 78K0 [CC78K0]
Compiler for 78K0S [CC78K0S]