|Compiler implementation language preference ? firstname.lastname@example.org (Michael Justice) (2018-05-22)|
|Re: Compiler implementation language preference ? email@example.com (Bruce Mardle) (2018-05-23)|
|Re: Compiler implementation language preference ? firstname.lastname@example.org (2018-05-23)|
|Re: Compiler implementation language preference ? email@example.com (Walter Banks) (2018-06-07)|
|From:||Walter Banks <firstname.lastname@example.org>|
|Date:||Thu, 7 Jun 2018 12:58:40 -0400|
|Organization:||Aioe.org NNTP Server|
|Injection-Info:||gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="83139"; mail-complaints-to="email@example.com"|
|Posted-Date:||08 Jun 2018 12:17:44 EDT|
On 2018-05-22 4:58 AM, Michael Justice wrote:
> Is there any preference to writing a compiler in say c instead of say
> java, fortran, basic etc? I ask cause i see many of the projects using
> either c or c++ instead of other programming languages.
> [Mostly people use what they're used to, or in languages that are easy
> to bootstrap on the machines they want to use. IBM's Fortran H
> compiler was famously written in itself, but I wouldn't write a new
> compiler in Fortran because it doesn't have great data structuring or
> dynamic storage management. (Yes, I know that Fortran 2008 is a lot
> different from Fortran 66.) -John]
Most of our compilers (including C compilers) are written in Pascal.
There are two reasons. The strong type checking in the Pascal compiler I
use is an important part of development productivity.
The second reason is Pascal has features that make it well matched to
the implementing a compiler. Pascal's fundamental support for string,
sets and boolean support tends to be very useful and natural to use. We
regularly use expert systems as part of our code creation process. Our
experience has been that they are easier to implement in Pascal than C.
The final point is an area of personal preference is the scoping
support for local functions.
Return to the
Search the comp.compilers archives again.