跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

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

Latest Updated:12/05/2016

Question:


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?

Answer:

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.
 
<Example>
#pragma inline_asm sampleasm
static __near void sampleasm(void){
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family
  • 本文是否實用?