Everything
3.12 Standard Library Functions

Among the standard library functions of the CA78K0, calls of va_starttop, va_start_banked, and va_starttop_banked are converted into standard library functions of the CC-RL. Normal standard library functions are not converted because the same functions are available.

 

-

Do not use the CcnvCA78K0 to convert the header file of the standard libraries for the CA78K0 and make the CC-RL handle the converted header file. Use the header file of the standard libraries for the CC-RL.

-

Since the function name is converted by replacing strings, if a macro name, variable name, tag name, etc. of the same name exists, they will also be replaced.

-

Since __near/__far is specified for the type of parameters or return values in standard libraries of the CC-RL, the type of parameters or return values may not match after conversion. Manually modify the code after confirming the user's manual of the CC-RL.

 

Table 3.6

Conversion of Standard Library Functions

Function Name of CA78K0

After Conversion

Remarks

toup

_toupper

Not converted

Handled as a user function in the CC-RL.

Use the toupper function.

tolow

_tolower

Not converted

Handled as a user function in the CC-RL.

Use the tolower function.

va_starttop

va_start_banked

va_starttop_banked

va_start

 

atexit

Not converted

atexit is not supported in the CC-RL.

Handled as a user function in the CC-RL.

brk

Not converted

Handled as a user function in the CC-RL.

sbrk

Not converted

Handled as a user function in the CC-RL.

itoa

Not converted

Handled as a user function in the CC-RL.

ltoa

Not converted

Handled as a user function in the CC-RL.

ultoa

Not converted

Handled as a user function in the CC-RL.

strbrk

Not converted

Handled as a user function in the CC-RL.

strsbrk

Not converted

Handled as a user function in the CC-RL.

stritoa

Not converted

Handled as a user function in the CC-RL.

strltoa

Not converted

Handled as a user function in the CC-RL.

strultoa

Not converted

Handled as a user function in the CC-RL.

strcoll

Not converted

strcoll is not supported in the CC-RL.

Handled as a user function in the CC-RL.

strxfrm

Not converted

strxfrm is not supported in the CC-RL.

Handled as a user function in the CC-RL.

matherr

Not converted

Handled as a user function in the CC-RL.

__assertfail

Not converted

Handled as a user function in the CC-RL.

The assert macro can be used in the CC-RL without any change.