This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How can I do calling for external address in my "C" programm by inline GAS?


Dmitrij K <kdiman1982@gmail.com> writes:

> I did as you told me, but it is not working too :( (I had used %r15 instead 
> %rdi for p_printf, and %rdi for str)...

Show us your code.


> I have not ideas how I can to call func by the address.
> I can't find examples of calling functions with args by address (as needs me).
> I had seen examples without args only (abi, internet)...

You can call a function by address in C.

Why do you want to do it in assembler code?

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]