From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5ZOl-0007eH-BJ for qemu-devel@nongnu.org; Mon, 19 Sep 2011 04:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5ZOk-0000Uo-1l for qemu-devel@nongnu.org; Mon, 19 Sep 2011 04:40:19 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:41253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5ZOj-0000Uf-TY for qemu-devel@nongnu.org; Mon, 19 Sep 2011 04:40:18 -0400 Received: by fxh13 with SMTP id 13so3937328fxh.4 for ; Mon, 19 Sep 2011 01:40:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E760AB2.50007@mail.berlios.de> References: <4E74FC29.1050003@mail.berlios.de> <4E760AB2.50007@mail.berlios.de> Date: Mon, 19 Sep 2011 09:40:16 +0100 Message-ID: From: David Gilbert Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH 0/8] tcg/interpreter: Add TCG + interpreter for bytecode (virtual machine) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Mulyadi Santosa , QEMU Developers On 18 September 2011 16:13, Stefan Weil wrote: > Am 18.09.2011 17:02, schrieb Mulyadi Santosa: >> >> Hi :) >> >> On Sun, Sep 18, 2011 at 02:59, Stefan Weil wrote: >>> >>> Hello, >>> >>> these patches add a new code generator (TCG target) to qemu. >> >> I personally congrats you for your hard work. So, here's a question >> from who are not so keen with Qemu internals: what is the biggest >> advantage of using TCI instead of directly using TCG? > > TCG with native code support is much faster (6x to 10x), > so for emulation on a supported host, TCI has no advantage > for normal users. Is it possible to dynamically switch between the two? The two cases I'm thinking of are: 1) Using the interpreter to execute one or two instructions in an exception handling case 2) Avoiding TCG code generation on the first few runs of a piece of code that might only be init code, and only bothering with TCG for hotter code. Dave