Skip to main content

Why are some assembly functions not shown in function analysis or function coverage? - Knowledgebase / TRACE32 PowerView - Lauterbach Support

Why are some assembly functions not shown in function analysis or function coverage?

Authors list

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 _divsi3

sYmbol.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.

Helpful Unhelpful

2 of 2 people found this page helpful

Add a comment

ID-0
To prove you are a human, please tell us the text you see in the CAPTCHA image