This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIMPLE: A language-independent tree IR
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 02 Jan 2002 23:55:22 +0100
- Subject: Re: SIMPLE: A language-independent tree IR
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.LNX.4.33.0201021832490.24621-100000@kern.srcf.societies.cam.ac.uk>
"Joseph S. Myers" wrote:
> On Wed, 2 Jan 2002, Diego Novillo wrote:
>
> > Any tree expression that does not conform to this must be broken
> > down into a sequence of these 14 expressions. For reference, I'm
> > attaching SIMPLE's BNF grammar. For instance,
>
> One thing I'd like in language-independent trees (at some level) is that
> ordering (sequence point) and aliasing constraints are explicitly
> represented (that is, language-dependent trees, in which these are
> implicit, are converted to language-independent trees, in which these are
> explicit).
Good point. The concept of sequence point has no equivalent in Fortran,
for example.
> There may be other C assumptions in the current tree forms to consider and
> maybe change - for example, are the C rules that overflow of signed
> integer arithmetic is undefined appropriate for all languages, or is this
> another matter that should be explicitly represented in the various forms?
Fortran doesn't even define the concept of overflowing of INTEGERs
(which are always signed in arithmetic context).
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)