From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5BiB-0001jg-6e for qemu-devel@nongnu.org; Sun, 18 Sep 2011 03:22:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5BiA-0004vf-7C for qemu-devel@nongnu.org; Sun, 18 Sep 2011 03:22:47 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:40032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Bi9-0004vb-Sj for qemu-devel@nongnu.org; Sun, 18 Sep 2011 03:22:46 -0400 Received: by bkbzv15 with SMTP id zv15so4835065bkb.4 for ; Sun, 18 Sep 2011 00:22:44 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4E759C43.5070708@redhat.com> Date: Sun, 18 Sep 2011 09:22:43 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4E74FC29.1050003@mail.berlios.de> <1316289634-18786-5-git-send-email-weil@mail.berlios.de> <4E75865B.5040106@mail.berlios.de> In-Reply-To: <4E75865B.5040106@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/8] tcg: Add interpreter for bytecode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Andi Kleen , QEMU Developers 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