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:
      • .cinit
      • .bss
    • Macro expansions are not supported
    • Directives not supported:
      • .struct
      • .page
      • .label
  • 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:
      • .ieee
      • .float8
      • .float16
    • Q formats: .qXX
    • C style hexadecimal values: 0x123ABC
    • Bit reverse and circular modifiers:
      • .br(a,b)
      • .circ(a,b)
    • Address section assignment:
      • .start "section_name",start_address
    • Entry point assignment:
      • .entry "expression"

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

Device: TMS320C3x
Category: TI Tools
Detail: Debugger Tools
Detail2: DSK
Title: 'C3x Transfer Code to DSK
Source: Case from TMS320 Hotline
Date: 8/1/97
GenId: 0300012

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!