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

Reducing RAM Used for the printf Function_CC-RL

Last Updated:02/21/2018

Question:

I am using RL78 Compiler CC-RL.
I am using the printf function of a standard library function, and therefore a section is allocated in the RAM.

I would like to reduce the allocated RAM size. Is there any way to do that?
 

Answer:

When the printf function of a standard library function is used, the allocated RAM area is used for the function and therefore cannot be reduced.

The printf_tiny function provides a simplified version of the printf series functions. This function has some functional restrictions, but secures no RAM area.
Consider using the printf_tiny function.

Refer to the following user’s manual for details of the specification of the printf_tiny function.
- Compiler CC-RL User's Manual
  7.5.6 Standard I/O functions
   printf
 

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family