Pular para o conteúdo principal
Renesas Brasil - Knowledgebase

Output code of function specified by #pragma inline asm (RL78 CC-RL)

Latest Updated:12/05/2016


I’m using the RL78 compiler CC-RL. Not only the inline-expanded part but also the code of the function itself of the function specified by #pragma inline_asm is allocated to memory. Is there any way to not allocate the code of the function itself to memory to reduce the ROM size?


The code of the function itself cannot be output by adding the static storage class specifier and the _near type qualifier to #pragma inline_asm function.
#pragma inline_asm sampleasm
static __near void sampleasm(void){
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family