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]

Re: Target-specific Front-Ends? (Was: front end changes for


I wrote:
> > Consider a preprocessor that takes current Altivec C code and produces
> > either standard or extended C code (GNU extensions).  If adopting the
> > existing Altivec syntax is too painful, a second choice might be to figure
> > out syntax choices that would make such a preprocessor very easy to write.
> > Then we don't have to ask existing users to rewrite their code.

Mark writes:
> Yup, I thought about this too.  It's plausible, but a pretty substantial
> effort, and not easy to do robustly with the tools we've got.

It wouldn't necessarily be up to the gcc team to deliver the preprocessor.
A 100% correct version would be substantial, as it would have to be a full
parser, but a more limited Perl or Python whack-job might handle almost
all the existing code.

The proposal is really only meant as an answer to those who say that we
cannot change the syntax at all because users won't want to change their
code.


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