calling the printf funtion

Hi,

I would like to display results on the screen . Can I use
the printf function in LLVM?

How do I call the funtion? Could someone give me an example

Thanks

Jai

Just compile a trivial C program containing printf through llvm-gcc and you will see how to call printf from within llvm. You could even do it on the llvm web page if you don't have llvm-gcc installed.

--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/

The gcc front-end page in llvm.cs.uiuc.edu seems to be down for the
last 18 hrs. I was finding that tool very useful to get the syntactic
constructs, could someone fix it ?

Thanks

Jai

The gcc front-end page in llvm.cs.uiuc.edu seems to be down for the
last 18 hrs. I was finding that tool very useful to get the syntactic
constructs, could someone fix it ?

Fixed, sorry.

-Chris

What was the issue?

What was the issue?

The lock file for the demo page was created but never deleted somehow. I added a cron entry to delete the lock file every 5 minutes, just in case.

-Chris