Everything
5. POINTS FOR CAUTION

If the C source program falls under any of the following items, it may not be possible for the CC-RL to correctly compile the converted C source program.

Table 5.1

Points for caution

No.

Item

CcnvCA78K0R Operation

CC-RL Operation in Response to Conversion Result

Reference

Destination

1

When there is nested comment text

Conversion may not be performed successfully.

The range of the comment is invalid.

CONVERSION SPECIFICATIONS

2

When a keyword cannot be detected because a ## operator is being used

No message is output and conversion is not performed.

Error E0520065 or another error will occur.

CONVERSION SPECIFICATIONS

3

When the C source program for the CA78K0R is for a large model

The C source program is converted as a normal C source program. Conversion of standard libraries has an invalid result.

Since the CC-RL does not have a large model, the type of pointers from which the __near and __far keywords have been omitted is invalid.

CONVERSION SPECIFICATIONS

 

Standard library functions

4

When '?' is included in the section name for #pragma section

No message is output and conversion is not performed.

Error E0520014 will occur.

#pragma section

5

When a section name that does not exist in the CC-RL is specified for the section name of #pragma section

No message is output and conversion is not performed.

Warning W0523037 is output and the #pragma directive is ignored. There is a possibility that section allocation will fail and operation is not as expected.

#pragma section

6

When \n or \t is used in a string in __asm("string")

A control character is output without any change.

Error E0550249 will occur.

ASM statements

7

When "/*" is included in an assembly-language comment (description after ";") within the range of #asm-#endasm

The assembly-language comment is output without any change.

A C-language comment ("/*") is given priority over an assembly-language comment (";") and the range of the comment is invalid.

ASM statements

8

When a label is included in __asm( ) or the assembly-language code within #asm-#endasm

A message is output.

Error E0550213 will occur.

ASM statements

[Restrictions] of #pragma inline_asm in the CC-RL user's manual

9

When there is #pragma interrupt and a description of the __interrupt keyword for the same function in a file

They are both converted into #pragma interrupt.

There will be duplicate #pragma directives and error E0523006 will occur.

Interrupt handler

10

When parameters in function declarations __interrupt, __interrupt_brk, and __rtos_interrupt are omitted

A #pragma directive is output and function declarations are output without change.

Error E0523008 will occur since there is no void type specification.

Interrupt handler

Interrupt handler for RTOS

11

When a macro or typedef is used in code for obtaining a type name, function name, variable name, etc.

A message is output and the program is output without being converted.

Error E0520020, E0520065, or another error will occur.

Interrupt handler

Interrupt handler for RTOS

Absolute address allocation specification

12

When there is #pragma rtos_interrupt and a description of the __rtos_interrupt keyword for the same function in a file

They are both converted into #pragma rtos_interrupt.

There will be duplicate #pragma directives and error E0523006 will occur.

Interrupt handler for RTOS

13

When the same address is specified for different variables in __directmap

No message is output.

Error E0541854 will occur.

Absolute address allocation specification

[Restrictions] of #pragma address in the CC-RL user's manual