a treelang question about printf.
Der-Johng Sun
derjohng@ms94.url.com.tw
Tue Jan 18 05:45:00 GMT 2005
Because I define a "write" token in lex, and I want it behave like printf.
Best regards,
Der-Johng Sun
> -----Original Message-----
> From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On
> Behalf Of James A. Morrison
> Sent: Monday, January 17, 2005 10:31 PM
> To: Der-Johng Sun
> Cc: gcc@gcc.gnu.org
> Subject: Re: a treelang question about printf.
>
>
>
> "Der-Johng Sun" <derjohng@hyweb.com.tw> writes:
>
> > Hi,
> >
> > I try to implement a litter front end with the gcc. But I
> am confused,
> > about the printf(). How to implement the code?
> >
> > test()
> > {
> > write("Hello World!!\n"); -- I want to call printf.
> > }
> >
> > I had found the informations such as BUILT_IN_PRINTF,
> > expand_builtin_fprintf etc... But I still don't known how
> to implement
> > it.
>
> Why not just build a CALL_EXPR to printf instead of a
> CALL_EXPR to write ?
>
> > I'm novice. I'm sorry if it is a stupid question.
> >
More information about the Gcc
mailing list