Re: QWORD PTR error on Intel Mac
- From: "Rod Pemberton" <do_not_have@xxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 15:41:36 -0400
"fiopa" <fiopax@xxxxxxxxx> wrote in message
news:1i0hdlb.uglxxpghmotuN%fiopax@xxxxxxxxxxxx
Hi
I'm porting my application (C/C++ and ASM Intel) to Intel Mac.
Windows version is OK:
...
C code
...
__asm
{
...
FLD QWORD PTR [EDI]
...
}
...
Mac version is OK for all ASM instructions, except QWORD PTR:
...
C code
...
asm
{
...
FLD QWORD PTR [EDI]
...
}
...
If I change from QWORD PTR to DWORD PTR or WORD PTR,
there is no error, but if I use QWORD PTR the compiler error is:
"jam failed with exit code 1"
I've to use a different sintax for QWORD PTR ?
Maybe... You need to state what assembler (or compiler) you're using.
From "Intel Mac", I could assume GAS for GCC (or GCC inline C assembly), butI don't know for sure.
Anyway, your starting code is MASM syntax:
FLD QWORD PTR [EDI]
This is GAS or AT&T syntax:
fldl (%edi)
Or, for inline "GAS" assembly with parameters:
"fldl (%%edi)\n"
Or, for inline "GAS" assembly without parameters:
"fldl (%edi)\n"
This is NASM syntax:
FLD QWORD [EDI]
Mac version is OK for all ASM instructions, except QWORD PTR:
I doubt that... I suspect GAS or less likely NASM.
For good links on GAS syntax, goto section 5.1:
http://www.frontiernet.net/~fys/osd_faq/index.htm
MASM guide:
http://doc.ddart.net/asm/Microsoft_MASM_Programmers_Guide_v6.1/
NASM manual:
http://home.comcast.net/~fbkotler/nasmdoc1.html
Rod Pemberton
.
- Follow-Ups:
- Re: QWORD PTR error on Intel Mac
- From: fiopa
- Re: QWORD PTR error on Intel Mac
- References:
- QWORD PTR error on Intel Mac
- From: fiopa
- QWORD PTR error on Intel Mac
- Prev by Date: the difference between assembly programming and topology
- Next by Date: Re: The Twelve Propaganda lessons
- Previous by thread: QWORD PTR error on Intel Mac
- Next by thread: Re: QWORD PTR error on Intel Mac
- Index(es):
Relevant Pages
|