This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
need help: gcc rtl function calls
- From: "Quan H. Nguyen" <quanhn at cse dot unsw dot EDU dot AU>
- To: help-gcc at gnu dot org
- Date: Thu, 29 Mar 2007 12:27:34 +1000 (EST)
- Subject: need help: gcc rtl function calls
Dear gcc,
I am currently a PhD student at CSE, UNSW, Australia.
I am looking a way to output the memory address of an insn (rtx), in the
format="%lu".
At the moment, I know how to get the memory address like:
find_mem_reference( insn, &mem, write);
address= XEXP (mem, 0);
Also I know that I need to place some rtl codes like:
start_sequence();
......
end_sequence();
But I could not find any hints to create a function call to place into the
dots. Even with a simple call to the builtin printf e.g.
expand_builtin_printf().
Don't know how to create argument list, formating, and function call.
I am looking around on the internet, gcc documentation, mailing list ...
for a month, but could not solve this.
Look forward to your advice.
Many thanks.
Regards,
Quan