User`s guide
address
Purpose Address and page for entry in symbol table in C CS IDE
Syntax a = address(cc,'symbolstring')
Description a = address(cc,'symbolstring') returns the memory address and
page values for the symbol identified by ’
symbolstring’ in CCS IDE.
address re turns the symbol from the most re cently loaded program
in CCS IDE. In some instances this might not be the program loaded
on the processor to which
cc is linked. By returning the address and
page values as a structure, your programs can use the values directly.
If you provide an output argument, the output
a contains the 1-by-2
vector of
[address page].Foraddress to work, symbolstring must
represent a valid entry in the symbol table. To ensure that
address
returns information for the correct symbol, use the p roper case when
you enter
symbolstring because symbol names are case-sensitive;
’
symbolstring’isnotthesameas’Symbolstring’.
If
address does not find a symbol table entry that m atches
symbolstring,thefirst cell of a is returned empty. Notice that this
function returns only the first matching symbol in the symbol table.
The output argument is a cell array where each row in
a presents the
symbol name and address in the table. Each returned symbol address
comprises a two element vector w ith the sym bol page as the second
element. For example, this table show s a few p ossible elements of
a,
and their interpretation.
a Array Element Contents of the Element
a{1}
String reflecting the symbol name. If address
found a symbol that matches symbolstring,
this is the same as
symbolstring.Otherwise
this is empty.
a{2}(1)
Address or value of symbol entry.
a{2}(2)
Memory page value. For TI’s C6000
processors, the page is 0.
7-7