COP 3223H meeting -*- Outline -*- * Installing and Running a C Compiler or IDE ** Compiler Python used an interpreter, for C we will need to use a compiler... ------------------------------------------ INTERPRETERS VS. COMPILERS (source program) -----------> output interpreter (Source program) | | compiler | v [exectuable] ----------> output machine ADVANTAGES OF COMPILERS/INTERPRETERS compilers (C) interpreters (Python) code runs faster development cycle ~10 times faster programs smaller than compiled code ------------------------------------------ We will see both approaches in this class. ** Downloading Code::Blocks for your machine In general see the running_c.shtml web page for the course, which is linked from the course web pages: www.cs.ucf.edu/~leavens/COP3223H/ ------------------------------------------ INSTALLING CODE::BLOCKS ON YOUR OWN MACHINE First, install MingW's gcc from http://www.mingw.org Then, install Code::Blocks from http://www.codeblocks.org/downloads See running_c.shtml for details ------------------------------------------ Show how to do this... ------------------------------------------ USING CODE::BLOCKS Run Code::Blocks pin it to your taskbar From the File menu, create a project... ------------------------------------------ Show how to download a hello world program. ** Using gcc from Eustis ------------------------------------------ YOU CAN USE GCC AT UCF Use the eustis.eecs.ucf.edu system login: your nid password: defaults to Pyymmdd where yymmdd is your birth year (yy) birth month (mm), and birth date (dd) Use a ssh client like putty http://www.chiark.greenend.org.uk/ ~sgtatham/putty/download.html Run the command gcc myprog.c -o myprog at the shell's prompt ------------------------------------------