D for projects similar to Forth Interpreters?
Jarrett Billingsley
jarrett.billingsley at gmail.com
Sat Feb 28 07:56:41 PST 2009
On Sat, Feb 28, 2009 at 6:10 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> JohnZ Wrote:
>>In this case what would be the pros and cons if any of D compared with C or asm?<
>
> If you use C with GCC you can use the computed goto, that is really useful to speed up an interpreter like a Forth one. D misses still such feature because it was thought as not useful enough.
D turns many switch statements into computed gotos. It's a compiler
optimization.
More information about the Digitalmars-d
mailing list