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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: Passing parameters to assembler functions in 'C' 64 style.
- From: £ukasz
- Re: Passing parameters to assembler functions in 'C' 64 style.
- From: Robert Plantz
- Re: Passing parameters to assembler functions in 'C' 64 style.
- From: Frederic Marmond
- Re: Passing parameters to assembler functions in 'C' 64 style.
- Prev by Date: How to force GAS/x86 to use short offsets
- Next by Date: Re: Passing parameters to assembler functions in 'C' 64 style.
- Previous by thread: How to force GAS/x86 to use short offsets
- Next by thread: Re: Passing parameters to assembler functions in 'C' 64 style.
- Index(es):
![]() |