From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Trouble translating a C++ data-structure.
Date: Mon, 12 Mar 2018 18:46:29 -0500
Date: 2018-03-12T18:46:29-05:00 [thread overview]
Message-ID: <p873gl$clv$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 7a285484-20b5-475e-b252-113b8a803785@googlegroups.com
"Shark8" <onewingedshark@gmail.com> wrote in message
news:7a285484-20b5-475e-b252-113b8a803785@googlegroups.com...
...
> Yeah, it's a very simple decomposition, but things like semantic-analysis
> could be done as a collection of simple transformation-functions and
> validators,
> perhaps exactly mirroring the LRM. (I haven't gotten into the semantic
> analysis,
> but this idea appeals to me in that it can allow things do be decomposed
> and
> maintained easily.)
Sounds reasonable, but I have to think every compiler starts out with a
grand vision of some sort. And then the real world intrudes and some part of
that has to be given up in order for the result to be practical (for
instance, Ada requires lengthy lookahead in some cases, so you'll probably
find that you will want to cheat a bit and gather some information early to
feed into later transformations). In our case, we also had to fit the result
on very small machines, so keeping the program completely in memory was
impractical (and thus we don't use trees for most of the compilation outside
of expressions). Etc.
Randy.
next prev parent reply other threads:[~2018-03-12 23:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 0:37 Trouble translating a C++ data-structure Shark8
2018-03-08 0:49 ` Paul Rubin
2018-03-08 2:33 ` gautier_niouzes
2018-03-09 16:24 ` Dan'l Miller
2018-03-09 22:44 ` Shark8
2018-03-10 3:02 ` Bojan Bozovic
2018-03-10 12:45 ` Bojan Bozovic
2018-03-10 18:10 ` Shark8
2018-03-12 16:07 ` Dan'l Miller
2018-03-12 23:46 ` Randy Brukardt [this message]
2018-03-12 19:49 ` Mehdi Saada
2018-03-12 22:26 ` Shark8
2018-03-13 1:22 ` Paul Rubin
2018-03-13 2:11 ` Dan'l Miller
2018-03-13 19:51 ` Paul Rubin
2018-03-13 23:35 ` Dan'l Miller
2018-03-14 4:28 ` Dan'l Miller
2018-03-14 3:14 ` Shark8
2018-03-14 4:44 ` Bojan Bozovic
2018-03-14 5:10 ` Paul Rubin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox