Re: Printing statements from compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks a lot

On Tue, Apr 5, 2022, 12:48 AM Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx> 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 <xry111@xxxxxxxxxxxxxxxx>
> School of Aerospace Science and Technology, Xidian University
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux