This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Function pointer question
- From: Aaron Abassi <rap dot paradigm at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 17 Apr 2011 20:43:44 -0400
- Subject: Function pointer question
Hello,
I was wondering if someone could answer a question regarding the
feasibility (this is not a request for changes to GCC) of constant
function pointer inlining. This obviously would require a compiler to
do an N-depth analysis of pointer assignments to confirm that the
value could not change (constant all the way back the address'
origin).
My question is; theoretically is this possible? (I'm obviously not a
compiler programmer)
Thank you,
Aaron