All of lore.kernel.org
 help / color / mirror / Atom feed
* Passing parameters to assembler functions in 'C' 64 style.
@ 2008-12-04 20:20 £ukasz
  2008-12-04 20:54 ` Robert Plantz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: £ukasz @ 2008-12-04 20:20 UTC (permalink / raw)
  To: linux-assembly

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


      

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-04 21:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 20:20 Passing parameters to assembler functions in 'C' 64 style £ukasz
2008-12-04 20:54 ` Robert Plantz
2008-12-04 20:55 ` Frederic Marmond
2008-12-04 21:22 ` £ukasz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.