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?


Andrew wrote:
> Why not compile up a C/C++ program that does what you want, then
> disassemble it...

Thanks Andrew! I did it and I have reach success!

It is nowly for me (to think as you), - usually, if I can't to understand 
something, I'm beginning search examples for to see things...

But now, I will be to use gdb (I have known how to work with GDB 1 day ago).

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Mike wrote:
> and perhaps even use the -S flag with gcc to output the assembly

thanks Mike!

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Ian wrote:
> Why do you want to do it in assembler code?

I need to call a function, types of parametres whichs are not famous for me:

About parametres I know this is: char*, int, const int (and such from these 
output/input)
But I do not for: void(*typeFunc)(char*, int, const int)

 I had trying do it through traits in c++, but I get fails, because there are 
needs templates of these funcs...



PS: thanks to all you! Have a nice day!

-- 
The best Regards.


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