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 839193858291 for ; Tue, 26 Sep 2023 06:48:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 839193858291 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=1695710921; cv=none; d=zohomail.com; s=zohoarc; b=n8PIdLpzvwkX2PUHFXbY6lYOAtbKlbeiIiEQyw1TdCe59FtNz2bXp6PZVEVx2c6H8IEMk6+HonCXUi/5tERvxvUMj4wQnqosOI9dB66YZuQw9ycX38gmTSxyJojhDbyrsbr0ETqgrI54Gsa0Xws9xJ5fTHJIZ6EPhcnfx/Y5Y74= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695710921; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=S0h1wO9VuOdwgi91SOcJpBSZBY4JFgB4IJv1MYAU2FQ=; b=BNK1XypQSnpuaLX/rgf8XLTGsgwTGp+h1g3lEG1XeTe9R+wZHEhv6qMKtyMEm9mt9uPcEDc6g+7mIiGoF1GjwfYrm+MU48ozXgnAOWylPoOftn6JpgTKR5nrYYASyOONX+HAGkAoMCM4doPoxauSqutjrOk3chViz53223vrsdQ= 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=1695710921; 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=S0h1wO9VuOdwgi91SOcJpBSZBY4JFgB4IJv1MYAU2FQ=; b=d3wm3mktZgGQ03mZ86X/qfjddlwAmh1jkW/eVZAW4osIq8PzuVWFd9K+gXqrDI/8 OwNeARmuaBP9yS+z+M1I6VDYibaxDw0RhzID9f8CrzGfTY9bwiEhmHHQXrejjuRB56T jCJIqPiPbTJiLZCnodJDSzfqnONrbuYbuZg7IFzE= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 16957109194301016.4831393751354; Mon, 25 Sep 2023 23:48:39 -0700 (PDT) Received: from [103.116.72.46] by mail.zoho.com with HTTP;Mon, 25 Sep 2023 23:48:39 -0700 (PDT) Date: Mon, 25 Sep 2023 23:48:39 -0700 From: weizhe wang To: "Jonathan Wakely" Cc: "gcc" Message-Id: <18ad03f3aee.ff61469c144162.334170906216452662@zoho.com> In-Reply-To: References: <78f16367-5f69-e133-ec46-7b3fd4b49662@zoho.com> <18acf4045f5.fa6f7fea141941.7482616710276612130@zoho.com> Subject: Re: seek advice about GCC learning MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_371565_311283008.1695710919407" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Feedback-ID: rr0801122828120631b671c54fb1d7844d00005f4c687f70cb3c77fcae9ea2d867daf00af8fb3e7c35391253d9:zu08011227dcba770950c30f797ee1a99300004ad2690f541a219bd62d4e202f19a31b5b17f87045f9c0debc:rf0801123253e815fe16d79a41a6d90fc30000c6c3039500777c3feffaee3a637a9308babf126f43d16f51d8a008b7404c329b5aea38cf:ZohoMail X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_LINEPADDING,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no 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_371565_311283008.1695710919407 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for your reply. Is there some guide for building rv32 cross compiler= gcc ? I encounter some error in the building progress. Sent using https://www.zoho.com/mail/ ---- On Mon, 25 Sep 2023 23:40:51 -0700 Jonathan Wakely wrote --- On Tue, 26 Sept 2023, 03:11 weizhe wang via Gcc, w= rote: Hi Guys, =20 =20 =20 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Can we build risv-32 gcc compiler from offi= cial gcc repository ? Yes, lots of people do that. Thanks, =20 =20 =20 Flint =20 =20 =20 Sent using https://www.zoho.com/mail/ =20 =20 =20 =20 =20 =20 =20 =20 ---- On Thu, 02 Feb 2023 05:21:36 -0800 Martin Jambor wrote --- =20 =20 =20 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 u= nderstand.=20 =20 We are delighted you found looking into GCC interesting.=C2=A0 I definitel= y=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.=C2=A0 But when you manage to manage to overcome the=20 difficulty, the project can be very rewarding.=C2=A0 And so not hesitate t= o=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 = understanding 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.=C2=A0 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 the= re 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_371565_311283008.1695710919407--