From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23464 invoked by alias); 19 Aug 2008 16:57:27 -0000 Received: (qmail 23453 invoked by uid 22791); 19 Aug 2008 16:57:26 -0000 X-Spam-Check-By: sourceware.org Received: from deliverator6.ecc.gatech.edu (HELO deliverator6.ecc.gatech.edu) (130.207.185.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 19 Aug 2008 16:56:21 +0000 Received: from deliverator6.ecc.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 1D5ED20C192 for ; Tue, 19 Aug 2008 12:56:17 -0400 (EDT) Received: from mailprx3.gatech.edu (mailprx3.prism.gatech.edu [130.207.171.17]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "Equifax" (verified OK)) by deliverator6.ecc.gatech.edu (Postfix) with ESMTP id 7D5CA20C186 for ; Tue, 19 Aug 2008 12:56:16 -0400 (EDT) Received: from lion.ae.gatech.edu (lion.ae.gatech.edu [128.61.186.186]) (using TLSv1 with cipher IDEA-CBC-SHA (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=gtg176i@mailprx3.gatech.edu, sender=n/a) by mailprx3.gatech.edu (Postfix) with ESMTP id 51E0A1F7C for ; Tue, 19 Aug 2008 12:56:15 -0400 (EDT) (envelope-from zepm@gatech.edu) From: Tim Wang To: gcc-help@gcc.gnu.org Subject: special comments handling in the C compiler Date: Tue, 19 Aug 2008 16:58:00 -0000 User-Agent: KMail/1.9.9 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200808191257.28899.zepm@gatech.edu> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00176.txt.bz2 Hi, I want to modify the c compiler so that the comments aren't stripped but stored and printed out later onto the assembly output as comments. Which files or more specifically which functions should I start to modifying? Right now I've just started digging through the gcc sources. I am currently reading through c-parser.c. Any help in pointing me towards the right direction would greatly appreicated. Thank you in advance. Regards, Tim Wang