To display log comments on console or file
Xi Ruoyao
xry111@mengyan1223.wang
Mon Apr 18 12:22:26 GMT 2022
On Mon, 2022-04-18 at 16:02 +0530, RICHU NORMAN wrote:
> Hi,
> Thanking you in advance.
> I am a beginner working on implementing new instructions in gcc. I am
> unable to display log comments on console or file. We want to put log
> comments to know if compilation entered certain functions that we edited.
> Either we should be able to print on console or print in a file. This would
> help us track the flow of execution as well.
You can use fprintf(stderr, ...) to output messages. But why not just
use a debugger?
--
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University
More information about the Gcc-help
mailing list