This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Writing function calls in RTL
- From: qubits <qubits at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 8 Jul 2002 18:11:53 +0100 (BST)
- Subject: Writing function calls in RTL
Hello everyone,
I want the compiler to call one of my functions when
it is generating RTL for tree expressions. For this I
need to 'emit' a function call into the code generated
so that it is called during program run-time.
I looked at a function called 'emit_library_call' in
calls.c. But I'm not sure whether one can use this
function to 'emit' function calls into the generated
code. Please let me know about this.
I am also looking for some kind of documentation about
the RTL back-end. The documents by RMS: 'Using and
porting GCC' & 'GCC Internals' are excellent, but they
dont list which functions are to be used etc. and how
one goes about using functions to control RTL
generation. I have been 'grep-ing', but I would like
to know if there is some existing documentation :)
Any suggestions are welcome!
Thanks,
q.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com