This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Computed gotos


Andrew Haley wrote:
Robert Dewar writes:
> > [...]
> Absolutely, computed gotos are an abomination in most cases

I use indirect jumps in a rather appalling way in the Java bytecode
compiler.  I guess I'll plead that support should be retained until I
can think of a better way to do it.

I strongly agree about the fact that computed gotos are the most natural and efficient choice in some situations (bytecode interpreters and translators which generate C code). However I think that the discussion was just about a matter of style: using computed goto vs. using switch, keeping both constructs available.


But if I am wrong I join Andrew Haley's appeal.

--
Luca Saiu, maintainer of GNU epsilon
http://www.gnu.org/software/epsilon


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