From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by sourceware.org (Postfix) with ESMTPS id 916CA385781A for ; Mon, 4 Apr 2022 19:57:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 916CA385781A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cusat.ac.in Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cusat.ac.in Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-2e68c95e0f9so113453477b3.0 for ; Mon, 04 Apr 2022 12:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cusat-ac-in.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NcEONlOtu+gKWs9i7rzlnYD/TLL58I1ndXiEPS+OEHI=; b=KifZQxtwC8+2vB/eoqXIlnvOgE97qTPdFMTc0fcGkyKCs0orN3GKqUjriBS5BpGcCm VAab+YVz5cF2D9SrsUYj3j3Fr8dLcE6JKzRhUBk3YJhmEWueoNBM+4SAA3cIeUXQfkju pKI6aiompghgilW6N1kzfbBXc01VGuetSf7WLP7+UN0hOUiIoHJmohJAD+w3aQ2mfpPq rjl4IvP16NcbPDLR+5T65QYlR2Nm9tymGAYw9wSgRAymgGtsVVz0Mu5v/tZpSKv1avvm k0CpJJuNlDf0BFhEwhmacVL1oU4u2l8T5CZ3aaTHREn0JcDKoyE0Ju+CElXiaHg/Du/F LCsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NcEONlOtu+gKWs9i7rzlnYD/TLL58I1ndXiEPS+OEHI=; b=Pa1LNTPCZAAPs/OtBUhW1+6mYr26wh26TG1Lskx30SsS5num99CEdAi9XvifD9EG6n A0phhymPAQSiyA4o6g0Z4IDNcoDD19sDZ+T40w6e6RkXxY155hP2f627oiqT3FyW0w7t wEeZssrIEqg3O94RAihDen6C3uCvPtU90FIvJE9GyRNsVlLy1Px6vAN7iRw+Uk9rzKqL Kt2DxZ/hclSvqnFF2/h6raF/NXxqqBggrCFMFfvhdEjG+F6nW3O2ohqRID9xSsMh1egr DnO/U4TesOvQCxd316J7ZEc8V21v/kHhwlLKlpSwHALlk6lGTrRTt5/mipOmqQi50QMp 6rqA== X-Gm-Message-State: AOAM533Uw//Q6ajOUmGVL72PUYf3d04ELPtkC5F/p90WAG1yhk2C3RQK dxeBfICCipl02Opr+8c5kSulKfcs4n02N39FjLw6A5BgP3C9cDBtOzjMBoDQzTC/oJ+oZwuQkqx E3L+GriToIkP8pgkTN+T3gKqUJvEk X-Google-Smtp-Source: ABdhPJxyqdoP3MMPo/1G1N1LqVm3uAc+ngcwK+9O2ZdTtf6t/9bhzMk0//A9zBrhib/ThgL/u67i8ayG+stoiLIdVqg= X-Received: by 2002:a81:7853:0:b0:2eb:831e:564e with SMTP id t80-20020a817853000000b002eb831e564emr1516891ywc.311.1649102279014; Mon, 04 Apr 2022 12:57:59 -0700 (PDT) MIME-Version: 1.0 References: <60cdb5bc954bf8917c4f7829432abde4d33b3f67.camel@mengyan1223.wang> In-Reply-To: <60cdb5bc954bf8917c4f7829432abde4d33b3f67.camel@mengyan1223.wang> From: RICHU NORMAN Date: Tue, 5 Apr 2022 01:27:47 +0530 Message-ID: Subject: Re: Printing statements from compiler To: Xi Ruoyao Cc: gcc-help X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2022 19:58:02 -0000 Thanks a lot On Tue, Apr 5, 2022, 12:48 AM Xi Ruoyao wrote: > On Mon, 2022-04-04 at 23:39 +0530, RICHU NORMAN wrote: > > Hi, > > I am a beginner in gcc development > > 1. Is there a way to use print statements in gcc to track the flow or > debug > > the code? > > AFAIK you can call fprintf to print to stderr. But it's not a "print > statement": there is no such concept in C++. > > > 2. After each edit do we use 'make' to build the gcc? > > Yes. > > > 3. Is there a way to individually compile the edited files, as using > 'make' > > takes more time? > > Why would it take more time? make tracks the timestamps of files and > only recompile a file when it's necessary. > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >