Re: How to combine assembly in C source files Israel Waldman wrote:
> Hi,
> I'm using an AIX 5.1 over power_604.
> I would like to know how to combine assembly code in a source file written in C.
> (Does it like under X86 architecture?)
> Thanks a lot
> Israel
#pragma mc_func is the available mechanism (VAC/C++). Read the compiler
documentation and look at sys/atomic_op.h for an example.
FWIW, the compiler can inline, and with optimization can likely
do a better job with the code than you can. Of course, this
depends upon what you're trying to accomplish with your
assembly code....
--
Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
__________________________________________________ ______________________ |