From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 1C33B3858D35 for ; Tue, 26 Sep 2023 06:41:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C33B3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-98377c5d53eso962731166b.0 for ; Mon, 25 Sep 2023 23:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695710463; x=1696315263; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bz/zGGc5pPB9xDGes9dHQbJpWmr9Ke9qGutd2ix6XoY=; b=Zo/6j2Uqzy8607RLdphi1oLNvfAei2heNEvks30vctvmyt0iS2vATrOFnvHGChWnCo eMb8KVMPOS2lNVDyfondhIomJ/u3FJ1LtpXlS5Hsc/1FP7ZAhosQO3qopsm4UKN3hEJf nVhDo7/3cBy3jW80ttXisyNRIM2sGyNHPDpgmJulxe6+FJBrdSi5vjSKxRIXdlb2kNc5 7e20y9ZcoOJZTvGdonUuk64ojx4raZbiHbrrky9yqRWYK2jBrY9BivAbmqu8wwgGtCiG 4qfUnKga52uf7tSllzusG6s6s2zuydXu5m7oW2HQTVJs7G9jA6VRgTDpKV6eJEhjE1DN GpoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695710464; x=1696315264; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bz/zGGc5pPB9xDGes9dHQbJpWmr9Ke9qGutd2ix6XoY=; b=cgFDeO6aDSLnsZj6vHIkODmHTiagKloJvZhlKaqBA3JuwF7fbBYUoktVzuuvyRgfXy 3s8NXG8nWa5eZCfAgo1yukP9l5ycj41U/AW1DdSEezISji5TzcvUeDicYygoC0eyC1fQ jDyQboSYUu6AakCPK/2ZSqqhP9At8ymfaoN71GMnxiYXHAlIfWg5HtxJFC2HnsEWBQSQ VPS2V7yvGuTpJ8kMgEdfnht6qbKHyEWTncyvZyPpNFpnjIrZ1oanIZQzCvMqIoN3Vy2l G1fSSazdEVRUtHu/xh0cYd9AvNXPnuKmyuQWXybZKnzD4HEEshyILalDSrSkbyaNzDiJ q2Pg== X-Gm-Message-State: AOJu0Yw6s09PrdTYWWNk4FKYa/oOrqYzzUMbRFdUKBcksG087IqSPcQ8 z/sqQlq87Y9iVLxb7d9bfyyQgsWuHfYNMj1t1A8= X-Google-Smtp-Source: AGHT+IGpkzhMs3sb+VdvHmrflP0WgK62ETJsf/NELnoUDDUf+ze8jexyBEyVjHh4oXTVjttG9w2/EKOOTLLCAwfHRUM= X-Received: by 2002:a17:906:1054:b0:9ae:6ff4:9f15 with SMTP id j20-20020a170906105400b009ae6ff49f15mr7358644ejj.11.1695710463405; Mon, 25 Sep 2023 23:41:03 -0700 (PDT) MIME-Version: 1.0 References: <78f16367-5f69-e133-ec46-7b3fd4b49662@zoho.com> <18acf4045f5.fa6f7fea141941.7482616710276612130@zoho.com> In-Reply-To: <18acf4045f5.fa6f7fea141941.7482616710276612130@zoho.com> From: Jonathan Wakely Date: Tue, 26 Sep 2023 07:40:51 +0100 Message-ID: Subject: Re: seek advice about GCC learning To: weizhe wang Cc: gcc Content-Type: multipart/alternative; boundary="000000000000d0323c06063d5bb0" X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,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: --000000000000d0323c06063d5bb0 Content-Type: text/plain; charset="UTF-8" On Tue, 26 Sept 2023, 03:11 weizhe wang via Gcc, wrote: > Hi Guys, > > > > Can we build risv-32 gcc compiler from official gcc repository ? > Yes, lots of people do that. > > > Thanks, > > > > Flint > > > > Sent using https://www.zoho.com/mail/ > > > > > > > > > ---- On Thu, 02 Feb 2023 05:21:36 -0800 Martin Jambor > wrote --- > > > > Hello Flint, > > On Sat, Jan 28 2023, hmsjwzb via Gcc wrote: > > Hi GCC developers, > > > > I am learning GCC. But the GCC code is hard to understand. > > We are delighted you found looking into GCC interesting. I definitely > agree that GCC source can be hard to read, especially for newcomers but > often even for seasoned contributors when they look at a part they are > not familiar with. But when you manage to manage to overcome the > difficulty, the project can be very rewarding. And so not hesitate to > ask us any specific question you may have here on the mailing list or on > IRC. > > > I'm reading the c compiler of GCC. It seems the understanding of > > AST/GENERIC representation is very important. Is there a tool > > can visualize the AST/GENERIC representation? > > Intermediate representations like GENERIC, GIMPLE and RTL are indeed > fundamental. In order to see the representation of instructions, > compile a simple program with option -fdump-tree-all and examine the > many files that will appear in your working directory (representation of > things like aggregate data types is unfortunately somewhat missing). > > > > > Do you have some advice for GCC beginner? Is there some > documentations can help in the learning of GCC? > > David Malcolm wrote a very nice set of tutorials about various aspects > of starting with GCC: > https://gcc-newbies-guide.readthedocs.io/en/latest/ > > I believe that is the best generic resource there is. > > Good luck, > > Martin > --000000000000d0323c06063d5bb0--