From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jr62Z-0005cE-3Q for qemu-devel@nongnu.org; Wed, 30 Apr 2008 02:43:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jr62X-0005c2-I7 for qemu-devel@nongnu.org; Wed, 30 Apr 2008 02:43:42 -0400 Received: from [199.232.76.173] (port=53677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jr62X-0005bz-BA for qemu-devel@nongnu.org; Wed, 30 Apr 2008 02:43:41 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jr62W-0001lt-Sv for qemu-devel@nongnu.org; Wed, 30 Apr 2008 02:43:41 -0400 Received: from wf-out-1314.google.com ([209.85.200.169]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jr62V-0003U3-EB for qemu-devel@nongnu.org; Wed, 30 Apr 2008 02:43:39 -0400 Received: by wf-out-1314.google.com with SMTP id 28so280398wfc.4 for ; Tue, 29 Apr 2008 23:43:35 -0700 (PDT) Message-ID: Date: Wed, 30 Apr 2008 13:43:34 +0700 From: "Mulyadi Santosa" Subject: Re: [Qemu-devel] How TCG works? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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 On Wed, Apr 30, 2008 at 11:10 AM, Jun Koi wrote: > 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? Start reading http://cvs.savannah.gnu.org/viewvc/qemu/tcg/README?revision=1.4&root=qemu&view=markup by in general, you're right IMHO. TCG itself is the compiler... regards, Mulyadi.