This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi,
Does gcc apply inter-procedural optimizations across functions called using
a function pointer? I guess that gcc performs conservatively assuming that
the pointer could point everywhere because the pointer is a declared as a
global variable and could be changed in any place. Is it true?
In this case, is there any pragma or directive to give a hint to the
compiler, giving the set of possible values of the pointer (which in my
case is known by the developer)? If not, this could be useful for
optimization purposes.
thanks in advance,
Salut!
Ramon.
--
-------------------------------------------------------------------------------
Ramon Bertran Monfort Departament d'Arquitectura de Computadors
Telefon (+34) 93 4054033/54055 Universitat Politecnica de Catalunya
Fax (+34) 93 4017055 Despatx C6-103/C6-221-9 Campus Nord
e-mail rbertran@ac.upc.edu C. Jordi Girona 1-3 - 08034 Barcelona
-------------------------------------------------------------------------------
A hundred times every day, I remind myself that my inner and outer life depends
on the labors of other men, living and dead, and that I must exert myself in
order to give in the measure as I have received and am still receiving.
A. Einstein
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |