I'm sorry, but I don't understand what you want to do.
If you have C source code, first install a C compiler. We recommend getting Sun Studio 11, which is free. You can get it here:
http://developers.sun.com/sunstudio
After you have installed Sun Studio, put the its "bin" directory on your execution path. For example, the default location for Sun Studio is /opt. The bin directory is /opt/SUNWspro/bin, so you would add that to your execution path. If you are using the C shell, add a line similar to
set path = ( /opt/SUNWspro/bin $PATH)
to your .cshrc file, or just run that command in a shell window.
Now you can run the C compiler as the command "cc".