This is the mail archive of the gcc-patches@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]

Re: i386 PIC improvement for static functions.


>>>>> Jeffrey A Law <law@cygnus.com> writes:

> My first concern is memory usage; this patch has the potential to 
> significantly increase the amount of memory necessary to compile a
> file since all static functions would be deferred.

I would worry about that.

> If we decide that's not a major problem we might consider deferring
> statics regardless of flag_pic.  Other architectures do similar
> optimizations regardless of -fpic (alpha & rs6000 come immediately to
> mind, the PA should, but doesn't due to a lack of time).

I believe they handle this with additional entry points for calls from
within the same translation unit.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]