Re: asm-blocks: please tell me why I'm being thick :-)
Re: asm-blocks: please tell me why I'm being thick :-)
- Subject: Re: asm-blocks: please tell me why I'm being thick :-)
- From: Nigel Perry <email@hidden>
- Date: Thu, 25 Mar 2004 22:17:13 +1200
At 8:16 am +0100 25/3/04, Gerard Iglesias wrote:
When in a C or ObjC fil I get the error :
test.c: In function `baz':
test.c:13: error: matching constraint references invalid operand number
At this line
li loc1,4 * 89
???
Yes, it appears to *sometimes* get messed up with the "register int
loc1" - which is what I think this is. However other times it works,
and so far I can find no pattern as to when something will work and
when it won't. And given things like re-ordering the functions in a
file and break/fix assembler errors I'm being to think the whole
feature is implemented "interestingly" (as I would say to students on
my parsing course! ;-))
Well in other test I made a long time ago I got very weird behavior
with bery strange asm translation.... I had more luck with this kind of
syntax use :
int bazC(int arg1) {
register int loc1;
asm {
@123
li loc1,4 * 89
nand. r5,arg1,loc1
ble- cr0, @123
otherlab: nop
mr r3,r5
}
}
But for this one I get the same error
Yes, in function asm blocks seem iffy as well :-(
I'm actually after the asm functions as they don't include a
prelude/postlude while the above does. For every simple functions
dropping these is worth it. However I'll take any reliable method!
Cheers,
Nigel
--
Nigel Perry, New Zealand
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.