Re: Implementing intrinsics in GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/12/2010 10:30 AM, Ian Lance Taylor wrote:
> Andrew Haley <aph@xxxxxxxxxx> writes:
> 
>> But you can trivially do the job with an inline asm in a header file
>> in almost all cases, so I don't really understand why you want to
>> submit to the pain of defining a new intrinsic.
> 
> I would say that the advantage to an intrinsic over an asm is that the
> instruction is exposed to the scheduler.  On some processors good
> instruction scheduling is essential for good performance.  And on some
> special purpose processors intrinsic functions (or asm statements) are
> needed for a lot of useful code.

Well, yeah, maybe.  But given the work involved in defining a new
builtin, I want to be sure the OP has carefully considered the
possibility of using an inline asm.

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux