Skip to main content
Renesas Electronics America - Knowledgebase

How to define "ABCDEFGH" and "0x12345678" using #define in C language?

Latest Updated:12/01/2011


The following codes are described in the assembler.

.str   "ABCDEFGH"
.word   0x12345678

I want to define "ABCDEFGH" and "0x12345678" using #define in C language.
Are there any assembler directives or methods that can be used for this purpose?


The assembler only provides assembler directives (such as .set and .local) for defining symbol values.
If you want to define a string, define it by #define then use the CA850 as a preprocessor.
In this case, you have to start the CA850 from the command line by specifying the -E option
because you cannot use the Project Manager.
Suitable Products