How can I do calling for external address in my "C" programm by inline GAS?
Dmitrij K
kdiman1982@gmail.com
Tue Mar 27 19:16:00 GMT 2012
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.
More information about the Binutils
mailing list