Clang and Snow Leopard
Clang is a great way to improve your compilation speed, and might improve the speed of the resulting executables compared to GCC. It’s easy to use within XCode, but what if you want to use it from Terminal to compile unix tools (eg wget)?
Here’s what you need to do to get this working:
export CC=clang
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
export PATH=/Developer/usr/bin:$PATH
Stick the above lines in your .profile, and you should be good to go. I just spent far too
read onLight Makes Right: Writing a ray tracer in Arc.
So, What’s This About?
I’ve always liked computer graphics. During my undergrad, I would occasionally head off to our library at the University of Ottawa to find new books on the topic. I even took a course in the subject a few years after I graduated. But the course focused mainly on OpenGL, with little mention of photo-realistic methods. I still wanted to understand how a ray tracer worked.
So I decided to write one a while
read on