This is the mail archive of the
mailing list for the binutils project.
Re: How can I do calling for external address in my "C" programm by inline GAS?
- From: Dmitrij K <kdiman1982 at gmail dot com>
- To: binutils at sourceware dot org
- Cc: Andrew Burgess <aburgess at broadcom dot com>, Mike Frysinger <vapier at gentoo dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Tue, 27 Mar 2012 23:16:25 +0400
- Subject: Re: How can I do calling for external address in my "C" programm by inline GAS?
- References: <2285652.pt3nkkD3ra@localhost> <9009997.QvckWTLRFj@localhost> <4F71F467.email@example.com>
> 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).
> and perhaps even use the -S flag with gcc to output the assembly
> 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
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.