AnsweredAssumed Answered

inline functions funpack(), fpack() considered to large for inlining

Question asked by MisterB on Jul 6, 2011
Latest reply on Aug 1, 2011 by MisterB

Hi,

 

I'm using VisualDSP++ 5.0.8 for SHARC 21469. When I switch on compiler remarks with -Wremarks compiler switch, I see remark cc1461 "Compiler Remark: function call inlined despite compiler  considering unsuitable for inlining" when using the intrinsic functions fpack() and funpack(). Silly question: Why considers the compiler the fpack() and funpack() unsuitable for inlining? It is only one assembly instruction. :-)

 

This behaviour of the compiler is very inconvenient, because I use fpack(), funpack() very often in my code. For this reason lots of these remarks occur while compiling. It's rather easy to miss some important remark. Because I switched on MISRA C checking, the #pragma diag statement can't be used.

 

Regards,

 

Michael

Outcomes