On Thursday, 4 June 2015 at 03:04:31 UTC, ketmar wrote:
On Wed, 03 Jun 2015 12:20:28 +0000, Paulo  Pinto wrote:

Now really? C was designed at a time where you couldn't even hold the source file in memory, so there is not even a need for an explicit AST.

C can essentially be "streamed" in separate passes:
cpp->cc->asm->linking

If compiling C is slow, it is just the compiler or the build system,
not the language.

Yes really, specially when comparing with Turbo Pascal, Delphi,
Modula-2, Oberon and a few other languages not tied to UNIX linker
model.

yes, i remember lightning fast compile times with turbo pascal. yet the code it produced was really awful: it was even unable to fold constants
sometimes!

No different from other MS-DOS C compilers.

Hence why such languages were the Pythons and Rubys of the day
and anyone that cared about performance was using straight
Assembly, in MS-DOS and other home systems, that is.

Michael Abrash books The Zen of Assembly Language and  Zen of
Code Optimization were published in 1990 and 1994 respectively.

--
Paulo

Reply via email to