X Unix For Mac
. 'Terminal' is an application that emulates a terminal with characteristics similar to a DEC VT-220 terminal with a variable screen size.
It is incapable of executing commands, (including compiling any type of source code). OS X runs some command (usually a shell such as bash, csh, ksh, sh a version of bash on OS X, tcsh, or zsh) and that command running in terminal may be able to execute commands. Air usb100guhp drivers for mac pro. I have never seen a shell with a built-in C language compiler either, although in theory that is possible.
Mac Os X For Unix Geeks
Unix For Mac Os X Users Pdf
So, to compile a C program, in addition to terminal and a shell, you need a compiler. OS X out of the box doesn't contain a compiler, but you can download the Xcode package from the app store which will give you some compilers (including cc, gcc, c), the tools you need to turn a compiled program into an executable object, utilities like lex, make, and yacc), and graphical tools to build OS X and iOS applications to run on Macs, iPads, iPhones, iWatches, and other devices. So, download and install Xcode. Then (assuming your source code is in a file named calc.c), you can compile your code into an executable file named calc with either of the following commands typed into the shell you have running in terminal.