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]

Feature idea for gcc


Hi,

I want to create an extension to the c and c++ languages, implemented as a
patch to gcc.

The extension would allow one to write `#use "foo.c"' instead of `#include
"foo.h"'. If the preprocessor would hit such a directive, it would call an
external program which would create an appropriate header file for the source
file `foo.c', and include it. This would free the programmer from the task of
writing a header file for every source file.

Another advantage of the `#use' directive would be direct visibilty of
dependencies to the compiler, which would allow for an additional feature to gcc:
the compiler flag `--recursive'. This flag would tell the compiler to look at
dependencies of the source files it has to compile, and compile those as
well (if necessary). This would free the programmer from writing makefiles for
projects with no configuration needs.

Any feedback is welcome.

--
Martin Schaffner


PS: I already presented these ideas in more detail here:
http://gcc.gnu.org/ml/gcc/2002-11/msg00866.html
Since I didn't get any response, I am now posting a shorter message. I hope
I am posting to the appropriate mailing list.

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


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