This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: a treelang question about printf.
- From: ja2morri at csclub dot uwaterloo dot ca (James A. Morrison)
- To: "Der-Johng Sun" <derjohng at hyweb dot com dot tw>
- Cc: <gcc at gcc dot gnu dot org>
- Date: 17 Jan 2005 09:30:50 -0500
- Subject: Re: a treelang question about printf.
- References: <000801c4fc8f$bb7de750$ea060a0a@cna.com.tw>
"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