In a Cg tutorial it says that Cg uses dynamic compilation. I've noticed it's compiler has some similarities with an interpreter, in that they don't need to compile all the code in the first pass, and if an error exists you will find it when running the exe.
However, what's difference between them. Can anyone give me some details? Thanks a lot.