Executing a C Program Creating the Program Compilation Linking Execution.

Slides:



Advertisements
Similar presentations
An Introduction to Programming By :- Vishal Hirani B.Tech II year (CSE)
Advertisements

Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CMPUT 101 Lab # 5 October 22, :00 – 17:00.
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
Computer Science 117 Intro to C++ 08/26/13. Today Discuss Syllabus Brief History of C++ How to Execute a C++ program. Reading assignment.
CS 202 Computer Science II Lab Fall 2009 September 3.
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
Computer Science A 5: 17/2. JCreator IDE: Integrated Development Editor Features: Compile and run from editor Manage multiple files Can look up api documentation.
CS 117 Section 2 + KNET Computer accounts – ed to KNET students –Change password Homework 1 Lab Tutors –In lab for next 2 weeks –Will help you with.
Introduction to C. A Brief History Created by Dennis Ritchie at AT&T Labs in 1972 Originally created to design and support the Unix operating system.
2002 C Program Outline How to use turbo c++ 3.0?.
Using the Java programming language compiler. Review of relevant material from previous lectures From previous lectures: A computer can only execute machine.
Lecture 8  make. Overview: Development process  Creation of source files (.c,.h,.cpp)  Compilation (e.g. *.c  *.o) and linking  Running and testing.
1 CS 161 Introduction to Programming and Problem Solving Chapter 10 g++ Compiler Usage Herbert G. Mayer, PSU Status 10/21/2014.
Agenda What is Computer Programming? The Programming Process
1 Unix Editors (ee, ed, ex, vi, vim) and Compilers (g77, gcc) Speaker: Li-Wen Chen Date:
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
리눅스 : Lecture 5 UNIX 유틸리티 : text editor, compilation (make), …
Vim Editor and Unix Command gcc compiler Computer Networks.
Compiling C/C++ Programs in Linux Lab اللهم علمنا ما ينفعنا،،، وانفعنا بما علمتنا،،، وزدنا علماً
Computer Engineering 1 nd Semester Dr. Rabie A. Ramadan 2.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
Lecture 0 CIS 208 C Language Lab Wed. January 12, 2005.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
LINUX programming 1. INDEX UNIT-III PPT SLIDES Srl. No. Module as per Session planner Lecture No. PPT Slide No. 1.Problem solving approaches in Unix,Using.
Chapter Ten g++ and make1 System Programming Software Development: g++ and make.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
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.
Lab00-Getting Started with VC Launch VS 2005 Launch Visual Studio 2005 – Start > All Programs > Microsoft Visual Studio 2005 > Microsoft Visual.
Compiling and running Java programs with BlueJ. Successfully compiled files program files in BlueJ You can tell from the shade of a program icon in BlueJ.
1 Steps to use Flex Ravi Chotrani New York University Reviewed By Prof. Mohamed Zahran.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
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.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Lecture 1: Introduction UNIX programming environment –Editors –Remote shell setup –C compilers –Debugger –make.
1 CS101 Fall 2001 Lecture 1 In order to write a program, you must first telnet to your pegasus account and login either from a Rutgers computer in a lab,
UNIX Development: g++ and make CS 2204 Class meeting 8 Created by Doug Bowman, 2001 Modified by Mir Farooq Ali, 2002.
CDS 301 Spring, 2013 CH3: MATLAB OpenGL Samples February 28, 2013 Jie Zhang Copyright ©
L071 Introduction to C Topics Compilation Using the gcc Compiler The Anatomy of a C Program Reading Sections
Starting Out With Java 5 Control Structures to Objects By Tony Gaddis Copyright © 2005 Pearson Addison- Wesley. All rights reserved. Chapter 1 Slide #1.
1 CS 192 Lecture 4 Winter 2003 December 8-9, 2003 Dr. Shafay Shamail.
POS 420 Week 2 DQ 3 With the many graphical editors available to a UNIX® or Linux® system administrator or programmer, why is Vi and Gedit, a character-based.
KYC - Know your compiler Introduction to GCC
Chapter 5: Preparing C Programs
How to Program.
First Day in Lab Making a C++ program
CS1010: Intro Workshop.
How to Start Programming in Linux Environment
Compiling and Running a Java Program
Computer Programming Techniques Semester 1, 1998
Computer Engineering 1nd Semester
A Guide to Unix Using Linux Fourth Edition
Setting up your DEV C++.
Welcome to CSCI 230! Problem Solving using C
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Unix Systems Administration
Introduction to C Topics Compilation Using the gcc Compiler
Users and Accounts Lab 0.1. Users and Accounts Lab 0.1.
Code Coverage David Inglis November 18, 2018.
עבודה עם Eclipse מבוא לתכנות מערכות מבוא לתכנות מערכות.
Run Java file with Window cmd
Chapter 2 Basic vi Editor.
C Programming Language
CSC 253 Lecture 15.
Introduction to C Topics Compilation Using the gcc Compiler
Presentation transcript:

Executing a C Program Creating the Program Compilation Linking Execution

Executing a C Program (Cont) Enter the program in a C editor. Save the program (File  Save) or F2. Use the extension.c for saving the file. Eg: sample.c Compile the program(Compile  Compile) or Alt+F9. Run the program(Run  Run) or Ctrl+F9.

Executing C program using UNIX Enter the program in vi editor. Save the file using :wq Use the extension.c for saving the file. Eg: sample.c Compile the program. Eg: cc sample.c (or) gcc sample.c Run the program using a.out.