This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "Documentation by paper"
joern.rennecke@superh.com (Joern Rennecke) wrote on 02.02.04 in <200402022202.i12M24814736@linsvr4.uk.superh.com>:
[quoteto.xps]
> > Of course sufficiently powerful pre and post conditions would be able
> > to describe what a function does, but if these conditions are written
> > in a low level language without set comprehension and quantifiers, this
> > can be impractical in practice.
>
> Do you think this is practical for functions like rest_of_compilation
> using *any* description language different from the implementation
> language?
I'd think it is pretty much impossible in the implementation language. (C
is bad at assert()ing anything complex.)
However, you could try the "English" description language.
MfG Kai