This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] unit-at-time compilation mode
- From: Mike Stump <mstump at apple dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Jan 2003 10:18:13 -0800
- Subject: 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.