a treelang question about printf.
James A. Morrison
ja2morri@csclub.uwaterloo.ca
Mon Jan 17 16:22:00 GMT 2005
"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.
>
> Best regards,
> Der-Johng Sun
> -----
> derjohng2@yahoo.com
>
--
Thanks,
Jim
http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim
More information about the Gcc
mailing list