From: parag on
call *ecx

can we place the callees address in ecx and call it

like the one above
This is in a SunOS10 machin on a amd64 instruction

the xchip flag given to cc is xchip=opteron
From: Rod Pemberton on
"parag" <parag.paul(a)gmail.com> wrote in message
news:d14173ce-7e4c-45c2-a0da-1a9c3a155904(a)e4g2000prn.googlegroups.com...
> Does the following look correct
>
> call *ecx

Yes. It appears to be a 32-bit x86 instruction in GNU GAS or AT&T syntax
for call register direct form of FF/2.

> can we place the callees address in ecx and call it

You should be able to.

> This is in a SunOS10 machine

? I don't know what that means in regards to your questions.

> on an amd64 instruction

That's 64-bit. The register should be rcx or r1. Not sure if the syntax is
the same for 64-bit. I would assume it is. FF/2 is supported for 64-bit.
E.g.,:

call *rcx

> the xchip flag given to cc is xchip=opteron

?

HTH,


Rod Pemberton