How do I compile a .c file on my Mac?
Use the gcc compiler. This assumes that you have the developer tools installed.
gcc