Re: Go to CLAX and enjoy the difference
- From: "bwaichu{at}yahoo.com" <bwaichu@xxxxxxxxx>
- Date: 13 Aug 2005 05:50:39 -0700
Frank Kotler wrote:
>
> Yeah, but different registers. What happened to ebx, ecx, edx, esi, edi,
> (ebp in some calls)...
>
> Well I suppose it's because syscall trashes [e|r]cx... Uses it to store
> [e|r]ip, I guess... ???
>
> Best,
> Frank
I intentionally did not set up a stack frame in those examples. You
have the
option in amd64 to use %rbp as another register and use %rsp to index
the
the stack. This is explained in a footnote in the ABI.
You have a lot more registers to work with. There is a table in the
ABI that tells you what registers are used for what parameter and which
ones are preserved across function calls.
Floats are now passed using the %xmm set of registers. I would post an
example, but I do not understand 128 bit media yet.
Cheers,
Brian
.
- Follow-Ups:
- Re: Go to CLAX and enjoy the difference
- From: Ludwig Hähne
- Re: Go to CLAX and enjoy the difference
- From: Ludwig Hähne
- Re: Go to CLAX and enjoy the difference
- References:
- Go to CLAX and enjoy the difference
- From: hutch--
- Re: Go to CLAX and enjoy the difference
- From: Robert Redelmeier
- Re: Go to CLAX and enjoy the difference
- From: hutch--
- Re: Go to CLAX and enjoy the difference
- From: Dave Turner
- Re: Go to CLAX and enjoy the difference
- From: bwaichu{at}yahoo.com
- Re: Go to CLAX and enjoy the difference
- From: Frank Kotler
- Re: Go to CLAX and enjoy the difference
- From: bwaichu{at}yahoo.com
- Re: Go to CLAX and enjoy the difference
- From: Frank Kotler
- Re: Go to CLAX and enjoy the difference
- From: Robert Redelmeier
- Re: Go to CLAX and enjoy the difference
- From: Frank Kotler
- Go to CLAX and enjoy the difference
- Prev by Date: Re: Welcome to the New and Improved alt.lang.asm
- Next by Date: Re: Go to CLAX and enjoy the difference
- Previous by thread: Re: Go to CLAX and enjoy the difference
- Next by thread: Re: Go to CLAX and enjoy the difference
- Index(es):
Relevant Pages
|