O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Compiling and Running C

Simply put, a compiler does the critical task of taking your C source code and turning it into an executable program (one that can be run). It takes high-level instructions and generates the proper low-level machine code that the computer can understand.

This process—also called building—involves linking together all relevant source files, reporting on errors, and much more. Most important, compilers take generic, possibly operating system–indifferent, C code and creates an executable file for that particular platform.

There are two ways you can compile and run your C:

  • By using a command-line prompt with a stand-alone compiler

  • By using the compiler and features built into an IDE

In the following steps, you will see how ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required