Re: Why Ruby interpreter is writed in c (not in c++)?



On 11 Jul 2008, at 16:10, M. Edward (Ed) Borasky wrote:
Eleanor McHugh wrote:
There actually was a time when even the use of C was in doubt for
embedded systems. An awful lot of Forth, Pascal, PL/M and
assembler code was written before C compilers were good enough.
Now, of course, the C compilers are good enough to build a high-
performance Forth environment in C. :)
Heretic ;p

I'm not the heretic -- the heretics are the people who added "labels
as values" to gcc, and the gForth team that exploited it.


I never did understand why both K&R and ANSI-C lacked computed gotos -
it's not like C does much else to protect a programmer :)

Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
----
raise ArgumentError unless @reality.responds_to? :reason



.



Relevant Pages

  • Re: PIC Assembler.
    ... PL/M was. ... Check the efficiency of the code they produce. ... The top quality C compilers can produce superbly tight and efficient ... I think people fret too much and quite possibly erroneously assume that assembler will ...
    (sci.electronics.basics)
  • RE: Regarding Alephs "Smashing the Stack for fun and Profit"
    ... Don't be surprise about assembler code being different, compilers ... new internal optimizations and ways to generate ...
    (Security-Basics)
  • Re: PIC Assembler.
    ... PL/M was. ... Check the efficiency of the code they produce. ... The top quality C compilers can produce superbly tight and efficient ... but on your average project the efficiency of your HLL won't ...
    (sci.electronics.basics)
  • Re: Improvements in a loop : ++i better than i++ ?
    ... sake of learning/knowing) is explicitly frowned upon. ... most compilers have a way to show you the assembler code they generate. ... If you saved 0.09s for 1.8 billion loops, ...
    (comp.lang.c)
  • Re: Are ++ and -- operators really more efficient
    ... However when I look at the assembler code for ++ and +1 both look ... It was frequently true years ago, where compilers didn't do much, if anything, in terms of optimization. ... Many CPUs had/have specific instructions to increment or decrement a variable, which were more efficient than addition instructions, but ancient compilers would only ... Worry first about making your code correct and easy to read; save optimization for after you've proven that your compiler isn't doing a good enough job for your needs. ...
    (comp.lang.c)