Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pseudo-builtin ppc instructions



On Sep 29, 2004, at 5:42 PM, Ian Ollmann wrote:

For future reference, you can find many ppc instructions, including isync, available for use as pseudo-builtins in the style of MWCW __intrinsics() if you  #include<ppc_intrinsics.h>.


Wow, didn't know about those. This is for postgreSQL and used in ppc blocks (#ifdef __ppc__), which include linux and ibm machines. Is ppc_intrinsics.h included in linux and xlc? Now it lives at /usr/include/gcc/darwin/3.3/ppc_intrinsics.h.


Also, is there a good tutorial on using asm in gcc? What I've found seems to be high level.
For example, what are "memory" or "cc" for?


#define __eieio() __asm__ ("eieio" : : : "memory")

Thanks

Marc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Scitech mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/scitech/email@hidden

This email sent to email@hidden
References: 
 >Re: GCC 3.3 can't inline?!? (From: Ian Ollmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.