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 18:53:56 +1200
At 8:18 am -0800 24/3/04, Paul Russell wrote:
>On Mar 23, 2004, at 4:11 PM, Nigel Perry wrote:
>
>>I'm trying to use asm-blocks and getting errors saying the first
>>thing in the block is invalid, whatever it is (instruction, register,
>>...). So I just copied the example in the docs into a new C++ tool
>>project:
>>
>
>It builds OK if you compile the asm function as C, apart from the
>fact there seems to be a problem with the arguments to the nand
>instruction (I just commented out this line to get it to compile,
>but it looks like perhaps only two arguments are expected ?).
Well it doesn't build as is using C on my system either, but the
error is not on the nand (which does take three arguments). Changing
the function I find some things work, some don't - and little pattern
to it. Some work in C++, one example failed until I added an unused
dummy function argument, then the assembler suddenly compiled...
I've reinstalled xtools from scratch from a fresh download - no go.
Has anybody got asm-blocks to compile reliably?
My gcc reports:
nigel% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
The problems occur with gcc -S as well so "as" isn't the problem
>I'm not sure why the C++ compiler gets confused by this asm function.
From my testing C++ seems to be more dicey the C. For example I can
compile an asm member function as class::func() outside the class,
just move it in (and drop the class:: of course) and it fails... Even
extra blank lines can change a working function into a broken one,
and vice-versa.
If nobody has got these things to work I'll put a few more bug
reports into Apple (I've already made the compiler blow-up using
asm-blocks with a "please report this" error).
TIA,
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.