This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Projects for beginners
- To: "fjh at cs dot mu dot oz dot au" <fjh at cs dot mu dot oz dot au>,"Richard Kenner" <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: Projects for beginners
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Fri, 02 Feb 2001 12:16:03 -0500
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
On Fri, 2 Feb 01 11:02:53 EST, Richard Kenner wrote:
The first is that we can think of a header file as a specification of some
facility. That facility depends one some other facilities in a way that we
don't need the user of a facility to bother with. This is very much like the
concept of packages in Ada and similar languages.
If we do this then indeed each such file needs "guards". [...]
I think that would be a major improvement in the compiler, but, as I said,
it a very large job and one that actually requires quite a bit of
detailed knowlege of the compiler.
I agree that in the long term this is the best way to go. Therefore we
should start moving in that direction now, and not wait until the forest
of header files is even more complex than it is now. As Richard says, this
will be a large amount of work, but it will be even more work if we don't
start now.
-Geert