From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5J49-000062-Cg for qemu-devel@nongnu.org; Sun, 18 Sep 2011 11:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5J48-0002xF-Gm for qemu-devel@nongnu.org; Sun, 18 Sep 2011 11:13:57 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:46690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5J48-0002x8-BE for qemu-devel@nongnu.org; Sun, 18 Sep 2011 11:13:56 -0400 Message-ID: <4E760AB2.50007@mail.berlios.de> Date: Sun, 18 Sep 2011 17:13:54 +0200 From: Stefan Weil MIME-Version: 1.0 References: <4E74FC29.1050003@mail.berlios.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mulyadi Santosa Cc: QEMU Developers 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. Its primary purpose was support of new hosts without a native TCG. In addition, it's easier to trace TCG operations in TCI than in generated native code, so TCI is really good to examine code, to test new TCG opcodes, to make statistics (I did some with Valgrind which now now longer works thanks to coroutines), to test the influence of TCG parameters like the number of available registers. I'm sure there are even more interesting applications for which TCI could be used. Cheers, Stefan