Assembly functions are sometimes represented in the debugging information by the compiler as a single address label rather than as a function with an address range. As a result, TRACE32 does not recognize them as functions, and they are therefore not included, for example, in the Function Run-Time Analysis or Function Coverage windows.
The commands sYmbol.Modify.AddressToRange and sYmbol.Modify.RangeToFunction can be used together to convert such single-address labels into functions.
For example:
sYmbol.Modify.AddressToRange _divsi3
sYmbol.Modify.RangeToFunction _divsi3sYmbol.Modify.AddressToRange extends a single-address label into a symbol with an address range. The range starts at the symbol's address and ends at the address of the next symbol minus 1.
sYmbol.Modify.RangeToFunction then converts the extended symbol range into a function.
This makes the assembly function available to TRACE32's function-based analysis features, such as Function Run-Time Analysis and Function Coverage.
Add a comment