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

Can I reduce the sizes of programs other than through optimization?

Latest Updated:05/18/2015

Question:

I am using the CC-RL compiler for RL78 devices. Is there any way to reduce the sizes of programs other than through optimization?

Answer:

You might be able to reduce the sizes of programs by using the SADDR area which belongs to the MCU or the callt instruction.
Try using the SADDR area or callt instruction with the following functions.

・#pragma saddr
・#pragma callt
・__saddr qualifier
・__callt qualifier

Example:
#pragma saddr data
#pragma callt cfunc
void cfunc(void)
{
	data++;
}
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family