NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Count Trampolines

From Texas Instruments Wiki
Jump to: navigation, search

To count the number of trampolines that occur in your code, run the following command from a Windows DOS prompt ...

C:\> type file.map | perl -0777 -ne "s/^.*FAR CALL TRAMPOLINES\s*//s; s/\n\s*\n.*$//s; foreach (split/\n/) { ++$cnt if (m/[0-9a-f]{8}/); } print $cnt;"

Or this command from a Unix prompt ...

% cat file.map | perl -0777 -ne 's/^.*FAR CALL TRAMPOLINES\s*//s; s/\n\s*\n.*$//s; foreach (split/\n/) { ++$cnt if (m/[0-9a-f]{8}/); } print $cnt;'

Replace file.map with the name of your linker map file. A linker map file is created with the linker option -m file.

If there are no trampolines in your code, these commands produce no output.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Count Trampolines here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Count Trampolines here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Count Trampolines here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Count Trampolines here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Count Trampolines here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Count Trampolines here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Count Trampolines here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Count Trampolines here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Count Trampolines here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity