5 option of c compiler/assembler/linker, 1 when using ncxx, 2 when using the assembler package for 740 family – Renesas Emulator Debugger M16C PC4701 User Manual

Page 289: 1 command execution examples

Advertising
background image

12 Attention

275

12.5 Option of C Compiler/Assembler/Linker

We do not evaluate other settings, so we can not recommend to append other options.

12.5.1 When Using NCxx

When -O, -OR or -OS option is specified at compilation, the source line information may not be
generated normally due to optimization, causing step execution to be operated abnormally.
To avoid this problem, specify -ONBSD (or -Ono_Break_source_debug) option together with -O, -OR or
OS option.

12.5.2 When Using the Assembler Package for 740 Family

Please assemble according to the following procedures and link.
At assemble

"-c" option
outputs debugging information concerned with source line to a relocatable file.

Note
When the directive comand .FUNC is specified to a function in a source file, if "-c" option is used,
the name of the function will be not available. Please do not use the option to make the name
available.

"-s" option
outputs local labels, local .equ symbols and local .bequ symbols to a relocatable file.


At link

"-s" option
generates a symbol file.


We do not evaluate other settings, so we can not recommend to append other options.

12.5.2.1 Command Execution Examples

The following shows examples of entering commands depending on the product

The Debugger for 740

>sra74 -c -s main.a74<Enter>
>sra74 -c -s sub.a74<Enter>
>link74 main sub ,,,-s<Enter>

Advertising