|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 5/8] tcg: Add interpreter for bytecode |
Date: | Sun, 18 Sep 2011 09:22:43 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 |
On 09/18/2011 07:49 AM, Stefan Weil wrote:
Is there really any difference in the generated code? gcc already uses a jump table internally to handle the switch cases.
You typically save something on range checks, and it enables a lot more tricks for use later (e.g. using multiple jump tables to perform simple peephole optimizations, or to divert code execution on interrupts).
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |