Re: Passing parameters to assembler functions in 'C' 64 style.

Frederic Marmond <[email protected]>
Newsgroups gmane.linux.assembly
Message-ID <[email protected]>
Hi Luke,

maybe this document may answer your question:
http://www.x86-64.org/documentation/abi.pdf

Have a particular look to section 3.2

Fred

Le Thursday 04 December 2008 à 21:20, £ukasz a écrit :
> Hi.
> I started to write assembler functions for C on 64-bit arch. On 32-bit
> arch. every parameters ware put on stack, now is different, what can be
> easyly seen reading source program. For example if im passing one (int *)
> parameter, adress (&int) is kept in %rdi register, and so one if u are
> passing more parameters. Ofcurse is not dificult to use it if u know but is
> there any key according to which parameters are stored?. I've made some
> "experiments" with different numbers and kind parameters, but the "key"
> must be described somewhere.
>
> Luke
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-assembly"
> in the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
DeepSee project, few links:
web: http://www.sand-labs.org/deepsee
blog: http://fmarmond.blogspot.com/search/label/DeepSee
twitt: http://twitter.com/fmarmond
IRC: #deepsee on freenode
--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.