Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Not using buildin functions: (5 Items)
   
Not using buildin functions  
With 4.4.2 while investigating some performance issue I discover that for C++ code , function such as abs, fabs, etc are
 not using builtin code.  Iin .c files its using inline, as expected.

Any way to "fix" this?

Re: Not using buildin functions  
On 13-04-24 10:45 AM, Mario Charest wrote:
>
> With 4.4.2 while investigating some performance issue I discover that for C++ code , function such as abs, fabs, etc 
are not using builtin code.  Iin .c files its using inline, as expected.
>
> Any way to "fix" this?

IIRC, the 4.4 qcc conf files specified -fno-builtin in the c++ qcc conf 
files, so probably the easiest fix is s/-fno-builtin// in the conf files.

Regards,

Ryan Mansfield

Re: Not using buildin functions  
> On 13-04-24 10:45 AM, Mario Charest wrote:
> >
> > With 4.4.2 while investigating some performance issue I discover that for C+
> + code , function such as abs, fabs, etc are not using builtin code.  Iin .c 
> files its using inline, as expected.
> >
> > Any way to "fix" this?
> 
> IIRC, the 4.4 qcc conf files specified -fno-builtin in the c++ qcc conf 
> files, so probably the easiest fix is s/-fno-builtin// in the conf files.
> 
Kind of make me nervous to use to turn this on. Wonder why it's setup this way. At anyrate I prefer to turn this feature
 on in our makefile given that it's pretty in 3 years from now no one will remember to edit the qcc conf files ;)

> Regards,
> 
> Ryan Mansfield
> 


Re: Not using buildin functions  
On 13-04-24 06:01 PM, Mario Charest wrote:
>> On 13-04-24 10:45 AM, Mario Charest wrote:
>>>
>>> With 4.4.2 while investigating some performance issue I discover that for C+
>> + code , function such as abs, fabs, etc are not using builtin code.  Iin .c
>> files its using inline, as expected.
>>>
>>> Any way to "fix" this?
>>
>> IIRC, the 4.4 qcc conf files specified -fno-builtin in the c++ qcc conf
>> files, so probably the easiest fix is s/-fno-builtin// in the conf files.
>>
> Kind of make me nervous to use to turn this on. Wonder why it's setup this way. At anyrate I prefer to turn this 
feature on in our makefile given that it's pretty in 3 years from now no one will remember to edit the qcc conf files ;)


The reason why it was originally added no longer applies.  It's removed 
in the next release.

Regards,

Ryan Mansfield

Re: Not using buildin functions  
Adding -fbuiltin seem to do the job.