 How to Transfer Code Written for the TMS320 Floating
Point Tools to the 'C3x DSK Tools
Due to the differences between the TMS320 Floating Point Code Generation Tools and the
'C3x DSK tools, the following items need to be considered:
- Items not supported by the 'C3x DSK Tools:
- Sections not supported:
- Macro expansions are not supported
- Directives not supported:
- A section start address must be defined before the section is declared or used
- Directives not supported by the TMS320 Floating Point Code Generation Tools:
- All mathematical functions: sin, cos,tan, hsin, ..
- IEEE and packed floating point formats:
- Q formats: .qXX
- C style hexadecimal values: 0x123ABC
- Bit reverse and circular modifiers:
- Address section assignment:
- .start "section_name",start_address
- Entry point assignment:
Note that the 'C3x DSK tools do not include a linker. All sections addresses are
assigned at assembly time by the .start directive. Therefore, convert the
section assignment from the linker command file to a set of .start
directives at the beginning of the assembly file. For example:
| Linker Command File |
'C3x DSK Assembler Equivalent |
MEMORY
{
- CRAM: origin = 0x809802, length = 0x5FE
}
SECTIONS {
- .bss : > CRAM
- .const : > CRAM
- .data: > CRAM
- .stack: > CRAM
- .text: > CRAM
} |
- .start ".text", 0x809802
- .start ".data", 0x809A00
- .start ".const", 0x809A10
- .start ".stack", 0x809A20
|
|