Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

The difference between the .SECTION and .CSEG directives (CC-RL)

Last Updated:04/17/2017

Question:

I am programming with the assembler that comes as part of the CC-RL compiler for RL78 devices. What is the difference between the .SECTION and .CSEG directives?

Answer:

The .SECTION directive can be used to direct the assembler where to start sections of code or data. 
The .CSEG directive can only be used to direct the assembler where to start sections of code. 
For the details of the section-related directives, refer to the manual at the URL below.

https://www.renesas.com/products/software-tools/tools/compiler-assembler/compiler-package-for-rl78-family.html#documents

CC-RL Compiler User's Manual
5.2.2 Section definition directives
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family