Re: Need help porting GMP to AMD64
x86 inline assembly often makes use of the 32 bit registers that start with an
'e' i.e %esp, %ebp. When compiled for 64-bit the registers names are
different with the 'e' registers now being 'r' registers i.e. %rsp, %rbp.
This is a gross oversimplification as the number of registers and sometimes
their functions have also changed. The ABI AMD64 supplement contains a list
of all changes. If you google for it you should be able to find it.
cheers,
joe
On Tuesday 10 February 2004 10:24 am, Falk Hueffner wrote:
> John Goerzen <jgoerzen@complete.org> writes:
> > I am trying to compile gmp-4.1.2 on AMD64 and am encountering this
> > error:
> >
> > /tmp/ccu7I0tJ.s: Assembler messages:
> > /tmp/ccu7I0tJ.s:42: Error: suffix or operands invalid for `bsf'
>
> Wrong inline assembly most likely. Please provide the preprocessed
> asm() statement with the bsf, and the corresponding line from the .s
> file.
>
> --
> Falk
--
******************************************
Joseph F. Ruscio
PhD Candidate
Computing Systems Research Lab
Virginia Tech
******************************************
Reply to: