Hi,
I’d like to compile the Power PC assembly code in QNX 6. It always failed to
recognize the the keyword “asm”. Please help.
asm int _getPVR();
asm int _getPVR()
{
nofralloc
mfspr r3,287
blr
}
Thanks
Wen
BC Tch Inc.
Hi,
I’d like to compile the Power PC assembly code in QNX 6. It always failed to
recognize the the keyword “asm”. Please help.
asm int _getPVR();
asm int _getPVR()
{
nofralloc
mfspr r3,287
blr
}
Thanks
Wen
BC Tch Inc.
Wen Lin <wen@bctechinc.com> wrote:
Hi,
I’d like to compile the Power PC assembly code in QNX 6. It always failed to
recognize the the keyword “asm”. Please help.[SNIP]
That isn’t the syntax that gcc uses for inline assembly. Take a look
at $QNX_TARGET/usr/include/ppc/inline.h.
chris
–
Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/