Question: Customer is trying to access table in code space using C. The code space is on page 0. How can this be done?

Answer:
1- Declare the variable in both the assembly file and C.
2- Make the variable an external in C and a global in assembly.
3- Use same name in the assembly file but add "_" in front .
4- Link the var. in assembly to proper section in lnk cmd file.


Device: TMS320C5x
Category: TI Tools
Detail: Code Generation Tools
Detail2: Compiler
Title: Access table in code space using C
Source: Case from TMS320 Hotline
Date: 8/1/97
GenId: 0005105

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