 |
|
 |
RENESAS TOOL NEWS on July 1, 2004: RSO-M3T-NC308WA_1-040701D
A Note on Using C Compiler Packages
M3T-NC308WA V.5.20 Release 1 and M3T-NC30WA V.5.30 Release 1
|
Please take note of the following problem in using the M3T-NC308WA V.5.20
Release 1 and M3T-NC30WA V.5.30 Release 1 C-compiler packages:
- On selecting link option "-JOPT"
- Products and Versions Concerned
M3T-NC308WA V.5.20 Release 1
for the M32C/80 and M16C/80 series MCUs
M3T-NC30WA V.5.30 Release 1
for the M16C/60, M16C/30, M16C/Tiny, M16C/20, M16C/10, and R8C/Tiny
series MCUs
- Description
If Options "-JOPT" and "-ORDER" are both selected at linking, "-ORDER"
may become invalid. And, if options "-JOPT" and "-LOC" are selected,
"-LOC" may also become invalid.
- 2.1 Conditions
- This problem occurs if the following four conditions are satisfied:
| (1) |
The "-Oglb_jmp(-OGJ)" option in the C compiler or the "-JOPT"
option in the assembler is selected. |
| (2) |
The "-JOPT" option is selected in the linker. |
| (3) |
The "-ORDER" or "-LOC" option is selected also in the linker. |
| (4) |
Any branch instruction that can be optimized is used. |
- 2.2 Example
----------------------------------------------------------
> as308 sample -JOPT
> ln308 sample -JOPT -ORDER WORK=400,PROGRAM=0E0000
----------------------------------------------------------
Because the "-ORDER" option becomes invalid, the starting addresses
400H of the WORK section and 0E0000H of the PROGRAM section cannot
be set.
- Workaround
When using the -LOC or -ORDER option in the linker, don't select
the -JOPT option in it because the program itself can run properly
without using this option.
- Schedule of Fixing the Problem
We plan to fix this problem in our next release of the products.
|
 |