How to profile code in hexagon dsp simulator
问题 I have been trying to compile my code using -pg to enable profiling in the simulator and once I do that it gives me linker errors. Compilation command hexagon-clang++ main.cpp -o hello -mv62 -pg Error hexagon-clang++ main.cpp -o hello -mv62 -pg Error: /tmp/main-924ac3.o(.text+0x30): undefined reference to `mcount' Error: /tmp/main-924ac3.o(.text+0x130): undefined reference to `mcount' Fatal: Linking had errors. This is my first time to write code for DSP chip, specifically the hexagon 682.