This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: guile-vm-0.0


Doug Evans <dje@transmeta.com> writes:

> Carl R. Witty writes:
>  > Marius Vollmer <mvo@zagadka.ping.de> writes:
>  > 
>  > > Wow, I didn't expect this.  When I first read about GCC's support for
>  > > computed gotos and that they canb be used to write very fast virtual
>  > > machines, I thought, come on, how much can that be?  I mean, a switch
>  > > isn't exactly slow either.  But...
>  > 
>  > For one thing, you can't get rid of the bounds-check on a switch.
> 
> And each switch case branches directly to the next
> switch case without having to go back up to the top
> and down again.

Of course, there's no reason a compiler couldn't do that with a 
  while (1) { switch (...) { ... } }
structure.  (I've never seen a compiler do that particular
optimization, though.)

Carl Witty

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]