2 ms·
Why did Turbo Modula-2 produce a binary that was 3x as fast as Pascal? Is M2 more suitable for aggressive optimization? Was the M2 compiler just better, with
by drewg123 4y ago
Why did Turbo Modula-2 produce a binary that was 3x as fast as Pascal? Is M2 more suitable for aggressive optimization? Was the M2 compiler just better, with the tradeoff of a much longer compilation time (9x)?
M2 seems like a forgotten language. It was what my intro to CS course was taught in back in 1989, and I really haven't seen much mention of it since.. We used some compiler on Macs that was super flaky. I remember the Macs would sometimes lock solid when compiling M2. I also remember grumbling because Pascal seemed to compile faster on the Apple IIs back in highschool than M2 did on the Macs in college. Thankfully we switched to C on SunOS or Ultrix for the upper level classes.
- nl 4y agoBack then there was a war between Pascal-derived (eg Modula2) languages and C-derived languages. http://www.cs.oberlin.edu/~jwalker/lisa-legacy/ http://www.cs.oberlin.edu/~jwalker/lisa-legacy/ is some interesting reading on this, but in the end C won.