From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sender4-pp-o91.zoho.com (sender4-pp-o91.zoho.com [136.143.188.91]) by sourceware.org (Postfix) with ESMTPS id 09EFE3857C40 for ; Tue, 26 Sep 2023 02:10:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 09EFE3857C40 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=zoho.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zoho.com ARC-Seal: i=1; a=rsa-sha256; t=1695694212; cv=none; d=zohomail.com; s=zohoarc; b=AP3e90WM+i+3cfQslKNdydp+Bvim3+sS80nryfOOSHxn8aVTHfJZmvu1p2ca7TuxM887NEpXXK/TDQYxyXydHrlC7bOH0U3NJ17b+FLwhENlO1tkcBILXAlCb2t5unq4g2VhsJocU3Zo9HugJEm6N/qLtxKVjWeWmdvJpu1jjKA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695694212; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=uM4xCH/EE+bmL8WqeMWnbk+r6SfHve9yw2f94QPnYhA=; b=HikCHnUrxc83zWrR9hdqKwysSHkvNTivVFNCNRU0Ct2He8MxUBeLzellXR3pNkJNlJv4yTOcKPD2V17I0EEbqAWAP/f6SYWt7gLmh47jCYnOsMcQAc3tcVK/IwvLnNUSi7o1rZbT8iOVuw5tK1KjWLL25GIakVq5OjqxkiGlg7E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=hmsjwzb@zoho.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1695694212; s=zm2022; d=zoho.com; i=hmsjwzb@zoho.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-Id:Message-Id:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Feedback-ID:Reply-To; bh=uM4xCH/EE+bmL8WqeMWnbk+r6SfHve9yw2f94QPnYhA=; b=e0kkR5N2deK2ytwSDCuv2TnObv9GIJDoXZYhtRY+Q1X9zqNOTocqiV4IgAk84yt3 NYNuP/hRnuLJzT/maeiKbL+as3avmv9isLxxKIZ4o+Wtvlwt+O2pDOajoQ0kaUPRx+X 1HnuREu8VOOexVgDftExqTNrr5d334/dOLP/lPR0= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1695694210571105.27408986170735; Mon, 25 Sep 2023 19:10:10 -0700 (PDT) Received: from [103.116.72.46] by mail.zoho.com with HTTP;Mon, 25 Sep 2023 19:10:10 -0700 (PDT) Date: Mon, 25 Sep 2023 19:10:10 -0700 From: weizhe wang To: "gcc" Cc: "mjambor" Message-Id: <18acf4045f5.fa6f7fea141941.7482616710276612130@zoho.com> In-Reply-To: References: <78f16367-5f69-e133-ec46-7b3fd4b49662@zoho.com> Subject: Re: seek advice about GCC learning MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_366392_1688722670.1695694210549" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Feedback-ID: rr0801122821861661bfc5c415ab81c71800007fabee16592478b4705a3040c3fbe7a83e3ba63b644206b0cd67:zu0801122749bbdce33d845670bd33643e0000dc2ae7f0f0648bdea4c60718528a4f7b6c3224b58dfc76d526:rf0801123244b02d5a891eda6d07ae58e800003e445c475240050035e956d9981c08543dd5705191d75125011b6799f30f73aaa952a9ca:ZohoMail X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: ------=_Part_366392_1688722670.1695694210549 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Guys, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Can we build risv-32 gcc compiler from offic= ial gcc repository ? Thanks, Flint Sent using https://www.zoho.com/mail/ ---- On Thu, 02 Feb 2023 05:21:36 -0800 Martin Jambor wro= te --- Hello Flint,=20 =20 On Sat, Jan 28 2023, hmsjwzb via Gcc wrote:=20 > Hi GCC developers,=20 >=20 > =C2=A0=C2=A0=C2=A0=C2=A0I am learning GCC. But the GCC code is hard to un= derstand.=20 =20 We are delighted you found looking into GCC interesting. I definitely=20 agree that GCC source can be hard to read, especially for newcomers but=20 often even for seasoned contributors when they look at a part they are=20 not familiar with. But when you manage to manage to overcome the=20 difficulty, the project can be very rewarding. And so not hesitate to=20 ask us any specific question you may have here on the mailing list or on=20 IRC.=20 =20 > =C2=A0=C2=A0=C2=A0=C2=A0I'm reading the c compiler of GCC. It seems the u= nderstanding of=20 > =C2=A0=C2=A0=C2=A0=C2=A0AST/GENERIC representation is very important. Is = there a tool=20 > =C2=A0=C2=A0=C2=A0=C2=A0can visualize the AST/GENERIC representation?=20 =20 Intermediate representations like GENERIC, GIMPLE and RTL are indeed=20 fundamental. In order to see the representation of instructions,=20 compile a simple program with option -fdump-tree-all and examine the=20 many files that will appear in your working directory (representation of=20 things like aggregate data types is unfortunately somewhat missing).=20 =20 >=20 > =C2=A0=C2=A0=C2=A0=C2=A0Do you have some advice for GCC beginner? Is ther= e some documentations can help in the learning of GCC?=20 =20 David Malcolm wrote a very nice set of tutorials about various aspects=20 of starting with GCC:=20 https://gcc-newbies-guide.readthedocs.io/en/latest/=20 =20 I believe that is the best generic resource there is.=20 =20 Good luck,=20 =20 Martin= ------=_Part_366392_1688722670.1695694210549--