For help, nvcc compilation

I am a beginner of cuda program. So the following question may be very easy . I am crazy of it now.
I want to use the nvcc compiler to determine the number of registers used per thread in my kerne.
So I type “nvcc –cubin “C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\projects\clock\clock.cu” in the Command Prompt.(I want to use the SDK example for verification.) But it told me “can not find compiler ‘cl.exe’ “
I am crazy of it now. :wacko:
Thank you for your help.

Open the Visual studio command prompt window (which sets environment variables identifying the location of visual studio) and try the command there.