This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fw: [PATCH 1/2] BZ#13743: PowerPC - Add a new header forplatform specific functions


On Thu, Mar 08, 2012 at 05:00:36PM -0600, Steven Munroe wrote:
> Michael it seems you are responding specifically to timebase and not
> general question (program priority register and data stream control
> register, etc). Or are you accepting the larger set?
> 
> Even with Michael gracious offer there are timing and availability
> issues since any new builtins would be GCC-4.8. 

In general, it depends.  It is always a cost tradeoff in terms of how much work
is it to add to the compiler, how useful is it for the general programmer
vs. using asm's, whether the compiler could fill pipelines, etc.  For example,
the x86 GCC compiler added most/all of the new SSE4.1, SSE4.2, SSE4A, AES,
PCLMUL, AVX, AVX2, BMI, TBM, F16C, and MBI2 etc. instructions as builtins.

Now, if you mean things that are more than one instruction, then it depends.  I
think the timebase is an example that is better done at the compiler level,
since it can hide the grunge for dealing with 32-bit or 64-bit systems.

I would think for example, it would be nice to have an include file that
defines fields for DBCST, etc.

-- 
Michael Meissner, IBM
5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA
meissner@linux.vnet.ibm.com	fax +1 (978) 399-6899


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]