Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain: (6 Items)
   
Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain  
Greetings all,

due to some C++11 things we need we switched to the gcc 4.6.1 toolchain for qnx&momentics more than a year ago. We also 
have some functions using assembly language as well as compiler intrinsics. However, when using profiling with function 
instrumentation, we get tons of unresolved references, basically for every single assembly or intrinsic command.

I counterchecked with support here, and the old 4.4.2 toolchain works fine, but is not an option for us due to missing C
++11 support and some bugs.

Has anybody else had this  experience or does anybody know whether a newer toolchain such as 4.7.1 resolves the problem?
 We do not want to switch as changing the toolchain includes several changes to the qnx target as well (such as changing
 symbolic ;links for several libs), none of them really documented on the toolchain page, which is a sorrow.

I am looking forward to getting help,

kindest thanks,
Andy
Re: Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain  
Hi again,

still hoping for help, find attached a protec demonstrating the exact problems.

Preliminaries: The project was created with IDE 5.0 and toolchain gcc 4.6.1. Both are officially available and 
downloadable fromt this website. Note, however, that, when importing the poject file into IDE version 4.8 or before, the
 build variances need to be reset to x86.

Our development environment runs on WIN 7 64 bit, the toolchain 4.6.1 or better is necessary due to C++11 suuport we 
need, hence using 4.4.2 is not an option for us.

Looking forward for getting information and help,

kindest regards,
Andreas
Attachment: Compressed file intrinsicsMomenticsProfileDemo.zip 31.69 KB
Re: Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain  
I forgot the compiler settings: -Wc,-std=gnu++0x -mfpmath=sse -msse4.1 -mstackrealign -march=corei7

We get the undefined references when compiling for profiling with function instrumentation.

Thanks again,
Andreas
Re: Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain  
On 13-07-03 02:30 AM, Andreas Beschorner wrote:
> I forgot the compiler settings: -Wc,-std=gnu++0x -mfpmath=sse -msse4.1 -mstackrealign -march=corei7
>
> We get the undefined references when compiling for profiling with function instrumentation.

You could compile with -finstrument-functions-exclude-function-list=_mm_ 
to exclude the intrinsics from function instrumentation.

Regards,

Ryan Mansfield


Re: Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain  
Greetings,

the compiler settings work around to exclude the intrinsics from function instrumentation seems to work fine so far. 
Thanks for the advice!

Andy
RE: Unreferenced Assembly commands with function profiling using gcc 4.6.1 toolchain  

> -----Message d'origine-----
> De : Andreas Beschorner [mailto:community-noreply@qnx.com]
> Envoyé : 3 juillet 2013 02:13
> À : momentics-community
> Objet : Re: Unreferenced Assembly commands with function profiling using
> gcc 4.6.1 toolchain
> 
> Hi again,
> 
> still hoping for help, find attached a protec demonstrating the exact
> problems.
> 
> Preliminaries: The project was created with IDE 5.0 and toolchain gcc 4.6.1.
> Both are officially available and downloadable fromt this website.

Just a small correction, first 4.6.1 is not officially available, it`s in experimental/prototype state.  While you are 
at it you might give a try to 4.8.1. It has better C++11 support.

> Note, however, that, when importing the poject file into IDE version 4.8 or before,
> the build variances need to be reset to x86.
> 
> Our development environment runs on WIN 7 64 bit, the toolchain 4.6.1 or
> better is necessary due to C++11 suuport we need, hence using 4.4.2 is not
> an option for us.
> 
> Looking forward for getting information and help,
> 
> kindest regards,
> Andreas
> 
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post102876
> To cancel your subscription to this discussion, please e-mail momentics-
> community-unsubscribe@community.qnx.com