From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jr3ek-00058G-UZ for qemu-devel@nongnu.org; Wed, 30 Apr 2008 00:10:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jr3ej-00057u-SO for qemu-devel@nongnu.org; Wed, 30 Apr 2008 00:10:58 -0400 Received: from [199.232.76.173] (port=58299 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jr3ej-00057r-Hy for qemu-devel@nongnu.org; Wed, 30 Apr 2008 00:10:57 -0400 Received: from wx-out-0506.google.com ([66.249.82.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jr3ej-0004QZ-EI for qemu-devel@nongnu.org; Wed, 30 Apr 2008 00:10:57 -0400 Received: by wx-out-0506.google.com with SMTP id h31so341573wxd.4 for ; Tue, 29 Apr 2008 21:10:56 -0700 (PDT) Message-ID: Date: Wed, 30 Apr 2008 13:10:55 +0900 From: "Jun Koi" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] How TCG works? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, Could somebody explain a bit on how TCG works? Is it true that now we translate the target CPU insns to TCG, then TCG to host insns in the final step? TCG is a backend of C compiler (gcc?), so how C compiler employs it? Sorry it is tough for someone with no background on compiler to understand how the whole work. Many thanks, Jun