Post Go back to editing

Cycle Count Difference in SHARC-FX When Function Definition and Call Are in Separate Files

Thread Summary

The user observed higher cycle counts on SHARC-FX when the function call and definition are in different files. The final answer suggests using the '-flto' compiler and linker flag for Link-Time-Optimization to resolve the issue, as marking routines as 'inline' alone is insufficient. The user also inquired about the difference in cycle count measurement between SHARC+ and SHARC-FX, and the internal team is investigating the MMR write behavior on SHARC-FX, which may contribute to the observed differences.
AI Generated Content
Category: Hardware
Product Number: ADSP-21835

Dear Team,

I am working in 21834 processor (SHARC-FX), in simulation I am observing a difference in cycle counts when running the same function in two scenarios:

Are there any specific compiler settings, optimization behaviors, or inlining considerations in SHARC-FX that could cause such differences?

Please share the root cause of this behavior.

Thanks, and regards

Franky45

Thread Notes

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.