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]
Other format: [Raw text]

Re: [RFC] unit-at-time compilation mode


On Thursday, January 23, 2003, at 04:25 AM, Jan Hubicka wrote:
I am attaching patch I made for unit-at-time compilation.
I have a question, if you have 100,000 lines in a PCH header file, and 10 lines in the .c file, and use 5 functions from the headers in one function from the .c file, and those 5 don't use any other functions, do you avoid touching or reading things from the PCH file except for the 5 which you must?

For example, if you added code to walk the entire global list of all declarations to find functions... the answer would be no.

I already know about other code that does touch them, and I'm not asking about that code; not your problem, you didn't add it. I just want to avoid new instances of it, and sensitize others to the problems of large headers.


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