 CSC 215 : Procedural Programming with C C Compilers.

Slides:



Advertisements
Similar presentations
COP 3530 JDK Environment Variables. COP 3530 JDK Environment Variables Environment Variables Environment variables are a set of dynamic values that can.
Advertisements

Cygwin Linux for Windows Desktop Paul Stuyvesant.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Writing Methods. Create the method Methods, like functions, do something They contain the code that performs the job Methods have two parts.
Background of Wireless Communication Student Presentations and Projects Wireless Communication Technology Wireless Networking and Mobile IP Wireless Local.
Command Console Tutorial BCIS 3680 Enterprise Programming.
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
CprE 288 – Quick intro for compiling C in Linux
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
1 Copyright 2006 Aplix Corporation. All rights reserved. May, 2006 Tokyo Jamboree #8 Cross-Development on Mac André Krützfeldt.
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
IT 211 Project Integration and Deployment Lab #11.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
Setting up Eclipse Computer Organization I 1 August 2009 ©2009 McQuain Getting Eclipse for C/C++ Development Go to and click on Download.
CSC 215 : Procedural Programming with C C Compilers.
Computer Programming 12 Mr. Jean March 19 th, 2013.
Cygwin Tutorial 1. What is Cygwin? Cygwin offers a UNIX like environment on top of MS-Windows. Gives the ability to use familiar UNIX tools without losing.
Cygwin Linux for Windows Desktop Paul Stuyvesant.
Engineering Computing I Chapter 1 – Part A A Tutorial Introduction.
Introduction to Systems Programming (CS 0449) PalmOS Tools: Developer Studio & Cygwin.
September 16, 2002Serguei A. Mokhov, 1 Setting Up Environment for Your UNIX Account in TAV COMP Operating Systems Tutorial.
CS 450: COMPUTER GRAPHICS INSTALLING GLUT AND GLEW SPRING 2015 DR. MICHAEL J. REALE.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Setting up Cygwin Computer Organization I 1 May 2010 ©2010 McQuain Cygwin: getting the setup tool Free, almost complete UNIX environment emulation.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
Created by Harry H. Cheng,  2009 McGraw-Hill, Inc. All rights reserved. C for Engineers and Scientists: An Interpretive Approach Chapter 2: Getting Started.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
CPS - Installation. CD Contents CDROM has a folder /usr [\usr for WINDOWS] ls usrdir usr.
IPT – Getting Started June Online Resources Project Website Requirements Server Preparation Installation Running IPT Installation Demo Upgrade/Reinstall.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Remote Access Usages. Remote Desktop Remote desktop technology makes it possible to view another computer's desktop on your computer. This means you can.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Subversion (SVN) is a widely used version control system and an essential piece of the MIMES collaborative modeling environment. It allows us to manage.
Cygwin Tutorial 1. What is Cygwin? Cygwin offers a UNIX like environment on top of MS-Windows. Gives the ability to use familiar UNIX tools without losing.
 Prepared by: Eng. Maryam Adel Abdel-Hady
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Cygwin: getting the setup tool
Precept I : Lab Environment, Unix, Bash, Emacs
Cygwin Tutorial 1.
CSC 215 : Procedural Programming with C
How to Program.
ENEE150 Discussion 01 Section 0101 Adam Wang.
Cygwin Tutorial 1.
CSC227: Operating Systems
How to Start Programming in Linux Environment
Getting Eclipse for C/C++ Development
Install external command line softwares
A Short DOS Presentation
Auburn University COMP 2710 Software Construction xCode Development Environment for C++ Programming in Mac OS Dr. Xiao.
Getting started in Eclipse
Run Java file with Window cmd
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Cygwin.
Cygwin Tutorial 1.
Software Setup & Validation
Cygwin Tutorial 1.
Getting Eclipse for C/C++ Development
Cygwin: getting the setup tool
CSCE 206 Lab Structured Programming in C
Presentation transcript:

 CSC 215 : Procedural Programming with C C Compilers

 In the Lab, Your saved C program will be displayed with a Microsoft Visual Studio or Java icon.  GCC: The classic open source C compiler for Linux and many other operating systems (and Windows under Cygwin or Ming).  Xcode. This is for Apple Mac and it is their version of GCC.  There are many other C compilers.

GCC Compiler  If you're on Linux, you can use gccgcc  If you're on Mac OS X, you can use XCode.XCode  XCode is free - it comes on your install CDs. Install it.  To get the latest version of Xcode, you can download it from Apple’s website.  If you are on Windows, you can use Cygwin.  Cygwin is a large collection of GNU compiler collection (GCC) and Open Source tools which provide functionality similar to a Linux distribution on Windows.

GCC Command  gcc invokes C compiler  gcc translates C program into executable file  $ gcc hello.c –o hello  Default output file name a.exe, to run output file,  $./hello

Download and Install Cygwin Compiler  Step 1: Download Setup Download the setup program "setup.exe" from  Step 2: Run Setup to Select, Download & Install Cygwin Packages  Run "setup.exe" ⇒ Install from Internet ⇒ select a directory (avoid installing in "Program Files" because of that "blank" character) ⇒ choose "Local Package Directory" which saves the downloaded installation files ⇒ select your Internet proxy setting ⇒ choose a download mirror site. (If "choose download site" box is empty, add "ftp://mirror.averse.net/pub/cygwin" in the "User URL". You can find all the mirror sites from  Select the packages to install.  Important: open the "Devel" (Development) category and select "gcc", "make",  Step 3: Setup PATH Include the Cygwin Binary directory (bin) in the PATH environment variable.  Suppose that your Cygwin is installed in directory "c:\cygwin". From "Control Panel" ⇒ System ⇒ (Vista only) Advanced System Settings ⇒ Advanced ⇒ Environment Variables ⇒ System Variables ⇒ Select variable named "PATH" ⇒ Edit ⇒ Add "c:\cygwin\bin;" in front of the existing PATH entry. Note that the semi-colon serves as the directory separator to separate Cygwin from the rest of directory paths.

 Installation Steps Link :  g/howto/Cygwin_HowTo.html

Creating a Folder  Open the Cygwin terminal  Go to the target directory (desktop) using the command cd:  cd writeThePathHere  Create a folder called “yourName_CSC215”using the command mkdir:  Mkdir yourName_CSC215

Write, Compile, Run your first C Code  Inside your folder open the text editor, save it with the extension.c, name it using the following naming convention:  “Lab1_YourFirstName_YourLastName.c"  Don’t forget to move to your own directory  Write, compile and run a program that prints: Hello World!  To compile the code type gcc -o Lab1_YourFirstName_YourLastName Lab1_YourFirstName_YourLastName.c  To run the code type./Lab1_YourFirstName_YourLastName  Show the program to your lab instructor.

Evaluation Question  Write a C program that declares a char variable, say, CH, and initializes it to any lowercase letter, ex: CH = b. The program should print the character CH and print in a new line the three characters that follow the CH character in the alphabetical order.  Note: In your answer don’t change the value of CH and don’t use any other variable.  Compile and run your program.  Output: