Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Source code for the Lilith's single pass Modula-2 compiler (Developers)

posted by Rugxulo Homepage, Usono, 02.11.2022, 01:36

There's a lot of old stuff floating around.

https://people.inf.ethz.ch/wirth/projects.html

> Modula-2 Compiler, 1983-85
>
> Over the years it became evident that the available Modula-2 compilers,
> including the one from ETH, were less than optimal, and through mediocre
> performance sometimes deterred users to take full advantage of Modula-2.
> Wirth decided to develop a new compiler from scratch by himself.
> It is based on the simple principle of one-pass compilation, whose
> application had become possible because of the large memories of modern
> computers, and which eliminates most of the slow accesses to secondary
> storage devices. The new compiler is remarkable because of its clear
> structure, its compactness and its efficiency. The program is about
> 5000 lines long, compared to 10'000 of its predecessor and 100'000
> of comparable Ada compilers, and it compiles itself in less than 2 minutes,
> compared with half an hour required by its predecessor. These advantages
> are not only visible in the compiler's use, but they demonstrate that
> powerful modern languages do not necessarily require giant, complex
> translators, as is so often claimed.

Keep in mind that Wirth still prefers Oberon (see Project Oberon and Compiler Construction).

For Modula-2, you're probably better off with ADW, ACK, XDS, GM2, or even FST.

https://www.phoronix.com/news/GCC-Modula-2-FE-2022-Review

> [T]he latest Modula-2 front-end patches for the GNU Compiler Collection (GCC)
> were sent out. The Modula-2 driver code has been rewritten and is now based
> off GCC's Fortran and C++ drivers. The Modula-2 linking mechanism has also
> been completely rewritten.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 89 users online (0 registered, 89 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum