comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Subunits of packages vs. subunits of subprograms
Date: 1996/07/21
Date: 1996-07-21T00:00:00+00:00	[thread overview]
Message-ID: <DuwL9s.19E@world.std.com> (raw)
In-Reply-To: 4s8h0o$s6u@felix.seas.gwu.edu


In article <4s8h0o$s6u@felix.seas.gwu.edu>,
Michael Feldman <mfeldman@seas.gwu.edu> wrote:
>Well, if you buy Robert Dewar's definition of compilation as syntax/
>semantic checking but no code generation, there's no violation. I've
>just been looking in the RM 95, especially Chapter 10, and I find no 
>straightforward definition of compilation in it. That is, there's nothing 
>like "compilation includes syntax/semantic checking and code generation". 

Well, this is all very language-lawyerly, but here's the
chapter-and-verse:

RM-1.1.2(27), 1.1.3(4), and 1.1.5(3-4) say that Legality Rules have to
be checked at "compile time", and that the compiler has to tell you (at
compile time) whether each compilation unit submitted to the compiler is
legal or illegal.  (Of course, a good compiler will attempt to explain
*why* it's illegal, but the RM doesn't require that.)

10.1(2) and 10.1.4(5,8) make it clear that "compile time" is not the
same as link time -- the "compiler" has to be able to detect legality
errors in incomplete programs (i.e. before link time).

The RM never says that the implementation has to generate code (although
1.1.3(2) comes close), and certainly never says *when* code is
generated.

Interpretive execution is legal, but there still has to be a
legality-checking compiler that comes before.  Incremental code
generation is another possibility, or even code generation at run-time
("just in time").

>That's fine - it is not the role of the standard to micromanage  
>mechanics.

Right.

- Bob




  reply	other threads:[~1996-07-21  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-11  0:00 Subunits of packages vs. subunits of subprograms Tucker Taft
1996-07-11  0:00 ` David Morton
1996-07-11  0:00   ` Robert Dewar
1996-07-13  0:00   ` Michael Feldman
1996-07-21  0:00     ` Robert A Duff [this message]
1996-07-11  0:00 ` Robert Dewar
1996-07-15  0:00 ` James A. Squire
1996-07-21  0:00   ` Robert A Duff
1996-07-24  0:00   ` JamesS1889
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox