Skip to main content
Knowledgebase
Home
Renesas India - Knowledgebase

Can I use #pragma asm and #pragma endasm with the SHC compiler?

Latest Updated:01/05/2016

Question:

Can I use #pragma asm and #pragma endasm with the SHC compiler?

Answer:

No. #pragma asm and #pragma endasm (assembler-embedded functions) are extended functions of the H8S and H8/300 series C/C++ compiler.

Use #pragma inline_asm if you are using an SHC compiler. Note that a warning message (C1405) will be output at the time of compilation if you attempt to use #pragma asm and #pragma endasm with V.9.04 Release 01 or a later version of the SHC compiler.

Suitable Products
C/C++ Compiler Package for SuperH Family