CSC 2400: Computing Systems!
|
|
- Scarlett Shaw
- 5 years ago
- Views:
Transcription
1 CSC 2400: Computing Systems! Professor Mirela Damian! 1 Introductions! Mirela Damian (professor)! Room 167A in the Mendel Science Building! mirela.damian@villanova.edu!! Programming assistants! Room G85 in the Mendel Science Building! (left back corner of the room)! 2 1
2 What do Computers Do?! Do a survey on campus! Numerous correct answers! Computers Execute Instructions.! That s all! 3 What Kind of Instructions?! Strictly speaking, computers only understand machine language (binary machine code).! 4 2
3 Hierarchy of Computer Languages! Click an icon Press a key Verbal command! Oracle / SQL MS Access! SGML / XML HTML! Lisp / ML Shells / scripts Python Basic / V- Basic Java Pascal/Fortran ADA C++ C! Assembly Machine Code! Human interface languages Database languages Mark- up languages Interpreted languages High- level compiled languages Low- level languages 5 Course Goals: Look under the hood! Help you learn what happens under the hood of computer systems! Specifically, two downward tours! Language levels tour! High-level language (C) assembly language machine language (IA-32)! Service levels tour! High-level language (C) standard libraries operating system (Linux)! Reveal how abstractions are created! 6 3
4 Course Goals: Why C?! Q: Why C instead of Java?! A: C facilitates language levels tour! C is a lower-level language! C is closely related to assembly language! A: C facilitates service levels tour! Linux is written in C! 7 Course Goals: Why Linux?! Q: Why Linux instead of Microsoft Windows?! A: Linux is good for education and research! Linux is open-source and well-specified! A: Linux is good for programming! Linux is a variant of Unix! Unix has GNU, a rich open-source programming environment! 8 4
5 Course Goals: Summary! Help you to become a...! Power Programmer!!!! 9 Resources: Books! Textbook! X86 Assembly Language and C Fundamentals! Joseph Cavanagh. CRC Press! ISBN ! Covers both language-level and system-level tours! Some topics will be covered in more depth in class! 10 5
6 Resources: Books! Textbook is mandatory! Homework assignments are based on textbook and in class lectures.! All homework due at start of class! Lectures based on textbook and online material! Additional materials posted on the class web site! 11 Resources: Programming Environment! Linux machines felix.csc.villanova.edu, helix.csc.villanova.edu! Unix machines degas, tanner, rodin! NFS tanner SSH csgate SSH Any lab, or your own! PC/Mac/Linux Computer! SSH! degas rodin felix 12 6
7 Try to Log In Now! Locate and invoke Secure Shell Client from the Start menu! Click on the Quick Connect tab! In the Host Name textbox, type in! tanner.csc.villanova.edu! In the User Name textbox, type in your username (the one the system administrator ed you)! Click on Connect! A text window with the shell prompt will be opened for you.! This is a command line interface.! You will interact with the Unix operating system by typing in commands at the shell prompt.try for example!! hostname!!the name of the machine (tanner) will be displayed.! 13 Workload Distribution! To use our Unix resources efficiently, from tanner connect arbitrarily to rodin or degas by typing in either!!!ssh rodin!!!!ssh degas!!! Too many students working on one same machine can slow it down considerably.! To log off, simply type in!!!exit! 14 7
8 Grading! Assignments (45%)! Pencil and paper! Clean, readable, working code! On time (no late submission)! First assignment is available now! Exams (45%)! Midterm! Comprehensive final exam! Class Participation (10%)! No makeup assignments or exams! Lecture attendance is mandatory! 15 Programming Assignments! Start early to allow time for debugging.! 16 8
9 Course Schedule! Very generally! Weeks! Lectures! 1-3! Introduction to C and Unix! 4-7! Bits, Bytes and Data Types! 7! Midterm exam! Recess! 8-12! Under the hood assembly language! Thanksgiving Recess! 13-14! Under the hood Unix processes! Dec. 17 / 18! Final exam, 6:00 8:30 pm! See course web site for details! 17 Any questions before we start?! 18 9
10 C vs. Java: Design Goals! Java design goals! Support object-oriented programming! Allow same program to be executed on multiple operating systems! Support using computer networks! Execute code from remote sources securely! Adopt the good parts of other languages (esp. C and C++)! Implications for Java! Good for application-level programming! High-level! Virtual machine insulates programmer from underlying assembly language, machine language, hardware! Portability over efficiency! Security over efficiency! Security over flexibility! 19 C vs. Java: Design Goals! C design goals! Support structured programming! Support development of the Unix OS and Unix tools! As Unix became popular, so did C! Implications for C! Good for system-level programming! But often used for application-level programming sometimes inappropriately! Low-level! Close to assembly language; close to machine language; close to hardware! Efficiency over portability! Efficiency over security! Flexibility over security! 20 10
11 C vs. Java: Design Goals! Differences in design goals explain many differences between the languages! C s design goal explains many of its eccentricities! We ll see examples throughout the course! 21 C vs. Java: Overview! Dennis Ritchie on the nature of C:! C has always appealed to systems programmers who like the terse, concise manner in which powerful expressions can be coded.! C allowed programmers to (while sacrificing portability) have direct access to many machine-level features that would otherwise require the use of assembly language.! C is quirky, flawed, and an enormous success. While accidents of history surely helped, it evidently satisfied a need for a system implementation language efficient enough to displace assembly language, yet sufficiently abstract and fluent to describe algorithms and interactions in a wide variety of environments.! 22 11
12 C vs. Java: Overview (cont.)! Bad things you can do in C that you can t do in Java! Shoot yourself in the foot (safety)! Shoot others in the foot (security)! Ignore wounds (error handling)! Dangerous things you must do in C that you don t in Java! Explicitly manage memory via malloc() and free() Good things you can do in C, but (more or less) must do in Java! Program using the objected-oriented style! Good things that you can t do in C but can do in Java! Write completely portable code! 23 C vs. Java: Details! Remaining slides provide some details! Suggestion: Use for future reference! Slides covered briefly now! 24 12
13 C vs. Java: Details (cont.)! Overall Program Structure! Building! Hello.java: import java.io.* public class Hello public static void main(string[]s) System.out.println("Hello 2400"); % javac Hello.java % ls Hello.class Hello.java % hello.c: #include <stdio.h> int main() printf("hello 2400\n"); return 0; % gcc hello.c % ls a.out hello.c % Running! % java Hello Hello, world % %./a.out Hello, world % 25 C vs. Java Example! HelloWorld.java: import java.io.* public class HelloWorld public static void main(string[]args) System.out.println("Hello world"); helloworld.c: #include <stdio.h> int main() printf("hello world\n"); return 0; 26 13
14 C vs. Java: Details (cont.)! Character type! char // 16-bit unicode char /* 8 bits */ Integral types! Floating point types! Logical type! Generic pointer type! byte short int long // 8 bits // 16 bits // 32 bits // 64 bits float // 32 bits double // 64 bits boolean // no equivalent void* Constants! final int MAX = 1000; (unsigned) char (unsigned) short (unsigned) int (unsigned) long float double long double /* no equivalent */ /* use integral type */ #define MAX 1000 const int MAX = 1000; enum MAX = 1000; 27 C vs. Java: Details (cont.)! Arrays! int [] a = new int [10]; float [][] b = new float [5][20]; int a[10]; float b[5][20]; Array bound checking! Pointer type! Record type! // run-time check /* no run-time check */ // Object reference is an // implicit pointer class Mine int x; float y; int *p; struct Mine int x; float y; 28 14
15 C vs. Java Example! DataTypes.java: import java.io.* public class DataTypes public static void main(string[]args) go(); public static void go() int a = 2; float b = ; byte[] s = new byte [100]; System.in.read(s); System.out.print(Arrays.toString(s)); datatypes.c: #include <stdio.h> void go() int a = 2; float b = ; char s[100]; scanf("%s", s); printf("%s", s); int main() go(); return 0; 29 C vs. Java: Details (cont.)! Strings! String concatenation! String s1 = "Hello"; String s2 = new String("hello"); s1 + s2 s1 += s2 Logical ops! &&,,! &&,,! char *s1 = "Hello"; char s2[6]; sprintf(s2,"%s", "hello"); #include <string.h> strcat(s1, s2); Relational ops! =,!=, >, <, >=, <= =,!=, >, <, >=, <= Arithmetic ops! +, -, *, /, %, unary - +, -, *, /, %, unary - Bitwise ops! >>, <<, >>>, &,, ^ >>, <<, &,, ^ Assignment ops! =, *=, /=, +=, -=, <<=, >>=, >>>=, =, ^=, =, %= =, *=, /=, +=, -=, <<=, >>=, =, ^=, =, %= 30 15
16 C vs. Java Example! StringManipulation.java: import java.io.* public class StringManipulation public static void main(string[]args) String s1 = "Computer Science"; int x = 2400; String s2 = "is fun!\n" String fun = s1 + " " + x + " " + s2; System.out.println(fun); mystring.c: #include <stdio.h> #include <string.h> int main() char * s1 = "Computer Science"; int x = 2400; char * s2 = "is fun!\n" char fun[100]; char tmp[5]; strcpy(fun, s1); sprintf(tmp, " %d ", x); strcat(fun, tmp); strcat(fun, s2); printf("%s\n", fun); return 0; 31 C vs. Java: Details (cont.)! if stmt! switch stmt! if (i < 0) statement1; else statement2; switch (i) case 1:... case 2:... default:... if (i < 0) statement1; else statement2; switch (i) case 1:... case 2:... default:... goto stmt! // no equivalent goto SomeLabel; 32 16
17 C vs. Java Example! Exam.java: public class Exam public static void main(string args[]) char grade = (char)system.in.read(); switch(grade) case 'A': System.out.print("Yay!"); case 'B': case 'C': System.out.print("Well done"); case 'D': System.out.print("Passed!"); case 'F': System.out.print("Try again"); default: System.out.print("Invalid"); if ((grade == 'A') (grade == 'B')) System.out.print("Congratulations!!!") exam.c: #include <stdio.h> int main() char grade; scanf( %d, &grade); switch(grade) case 'A': printf("yay!"); case 'B': case 'C': printf("well done"); case 'D': printf("passed!"); case 'F : printf("try again"); default: print("invalid"); if((grade=='a ) (grade=='b')) printf("congratulations!!!") return 0; C vs. Java: Details (cont.)! for stmt! while stmt! do-while stmt! for (int i=0; i<10; i++) statement; while (i < 0) statement; do statement; while (i < 0) int i; for (i=0; i<10; i++) statement; while (i < 0) statement; do statement; while (i < 0) continue stmt! continue; continue; labeled continue stmt! continue SomeLabel; /* no equivalent */ break stmt! labeled break stmt! break SomeLabel; /* no equivalent */ 34 17
18 C vs. Java Example! Factorial.java: public class Factorial public static void main(string[] args) final int NUM_FACT = 100; for(int i = 0; i < NUM_FACT; i++) System.out.println( i + "! is + fact(i) ); public static int fact(int n) int result = 1; for(int i = 2; i <= n; i++) result *= i; return result; factorial.c: #include <stdio.h> #include <string.h> #define NUM_FACT 100 int fact(int n) /* identical to Java */ int main() for(int i=0; i < NUM_FACT; i++) printf( %d! is %d, i, fact(i)); return 0; 35 C vs. Java: Details (cont.)! return stmt! return 5; return; return 5; return; Compound stmt (alias block)! statement1; statement2; statement1; statement2; Exceptions! throw, try-catch-finally /* no equivalent */ Comments! Method / function call! /* comment */ // another kind f(x, y, z); someobject.f(x, y, z); SomeClass.f(x, y, z); /* comment */ f(x, y, z); 36 18
19 Getting Started! Check out course web site now!!!! Explore your computing environment! Assignment posted on the website! Reading! Required: Chapter 4, Cavanagh textbook! 37 19
EE 209: Programming Structures for Electrical Engineering
EE 209: Programming Structures for Electrical Engineering 1 Goals for Today s Class Course overview Introductions Course goals Resources Grading Policies Getting started with C C programming language overview
More informationEE 209: Programming Structures for Electrical Engineering. (Many Slides Borrowed from Princeton COS 217)
EE 209: Programming Structures for Electrical Engineering (Many Slides Borrowed from Princeton COS 217) 1 Goals for Today s Class Course overview Introduction Course goals Resources Grading Policies Getting
More informationCOS 217: Introduction to Programming Systems
COS 217: Introduction to Programming Systems 1 Goals for Todayʼs Class Course overview Introductions Course goals Resources Grading Policies Getting started with C C programming language overview 2 1 Introductions
More informationCOS 217: Introduction to Programming Systems!
COS 217: Introduction to Programming Systems! 1 Goals for Today s Class! Course overview" Introductions" Course goals" Resources" Grading" Policies" Getting started with C" C programming language overview"
More informationCOS 217: Introduction to Programming Systems!
COS 217: Introduction to Programming Systems! 1 Goals for Today s Class! Course overview" Introductions" Course goals" Resources" Grading" Policies" Getting started with C" C programming language overview"
More informationCOS 217: Introduction to Programming Systems. Goals for Todayʼs Class. Introductions
COS 217: Introduction to Programming Systems 1 Goals for Todayʼs Class Course overview Introductions Course goals Resources Grading Policies Getting started with C C programming language overview 2 Introductions
More informationCSC 2400: Computing Systems
CSC 2400: Computing Systems Professor Mirela Damian http://www.csc.villanova.edu/~mdamian/ 1 Introductions Mirela Damian (professor) Room 167A in the Mendel Science Building mirela.damian@villanova.edu
More informationFall, $ cat welcome.c #include <stdio.h>
$ cat welcome.c #include int main(int argc, char *argv[]) { printf( COS 217\n ); printf( Introduction to Programming Systems\n\n ); } printf( Fall, 2018\n ); return 0; $ gcc217 welcome.c o welcome
More informationPrinceton University Computer Science 217: Introduction to Programming Systems. Agenda. COS 217: Introduction to Programming Systems.
Princeton University omputer Science 217: Introduction to Programming Systems OS 217: Introduction to Programming Systems 1 2 Introductions Professor Aarti Gupta aartig@cs.princeton.edu Lead Preceptors
More informationCOS 217: Introduction to Programming Systems
COS 217: Introduction to Programming Systems Fall 2006 (TTh 10:00-10:50 in CS 104) Prof. David I. August Preceptors: Bob Dondero, Changhoon Kim, Guilherme Ottoni http://www.cs.princeton.edu/courses/archive/fall06/cos217/
More informationCSC 2400: Computer Systems. Key to Success
CSC 2400: Computer Systems Week 1 Goals and Introduction Dr. Mirela Damian Key to Success q Start early to allow +me for debugging 1 Policy: Write your own code q Programming in an individual creative
More informationCS 241 Data Organization. August 21, 2018
CS 241 Data Organization August 21, 2018 Contact Info Instructor: Dr. Marie Vasek Contact: Private message me on the course Piazza page. Office: Room 2120 of Farris Web site: www.cs.unm.edu/~vasek/cs241/
More informationTwo s Complement Review. Two s Complement Review. Agenda. Agenda 6/21/2011
Two s Complement Review CS 61C: Great Ideas in Computer Architecture (Machine Structures) Introduction to C (Part I) Instructor: Michael Greenbaum http://inst.eecs.berkeley.edu/~cs61c/su11 Suppose we had
More informationEL2310 Scientific Programming
(yaseminb@kth.se) Overview Overview Roots of C Getting started with C Closer look at Hello World Programming Environment Discussion Basic Datatypes and printf Schedule Introduction to C - main part of
More informationPRINCIPLES OF OPERATING SYSTEMS
PRINCIPLES OF OPERATING SYSTEMS Tutorial-1&2: C Review CPSC 457, Spring 2015 May 20-21, 2015 Department of Computer Science, University of Calgary Connecting to your VM Open a terminal (in your linux machine)
More informationWelcome to... CS113: Introduction to C
Welcome to... CS113: Introduction to C Instructor: Erik Sherwood E-mail: wes28@cs.cornell.edu Course Website: http://www.cs.cornell.edu/courses/cs113/2005fa/ The website is linked to from the courses page
More informationLaboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information
Laboratory 2: Programming Basics and Variables Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information 3. Comment: a. name your program with extension.c b. use o option to specify
More informationPrinceton University Computer Science 217: Introduction to Programming Systems The Design of C
Princeton University Computer Science 217: Introduction to Programming Systems The Design of C C is quirky, flawed, and an enormous success. While accidents of history surely helped, it evidently satisfied
More informationC - Basics, Bitwise Operator. Zhaoguo Wang
C - Basics, Bitwise Operator Zhaoguo Wang Java is the best language!!! NO! C is the best!!!! Languages C Java Python 1972 1995 2000 (2.0) Procedure Object oriented Procedure & object oriented Compiled
More informationEL2310 Scientific Programming
Lecture 6: Introduction to C (pronobis@kth.se) Overview Overview Lecture 6: Introduction to C Roots of C Getting started with C Closer look at Hello World Programming Environment Schedule Last time (and
More informationCS 61C: Great Ideas in Computer Architecture Introduction to C
CS 61C: Great Ideas in Computer Architecture Introduction to C Instructors: Vladimir Stojanovic & Nicholas Weaver http://inst.eecs.berkeley.edu/~cs61c/ 1 Agenda C vs. Java vs. Python Quick Start Introduction
More informationMotivation was to facilitate development of systems software, especially OS development.
A History Lesson C Basics 1 Development of language by Dennis Ritchie at Bell Labs culminated in the C language in 1972. Motivation was to facilitate development of systems software, especially OS development.
More informationMotivation was to facilitate development of systems software, especially OS development.
A History Lesson C Basics 1 Development of language by Dennis Ritchie at Bell Labs culminated in the C language in 1972. Motivation was to facilitate development of systems software, especially OS development.
More informationC Introduction. Comparison w/ Java, Memory Model, and Pointers
CS 261 Fall 2018 Mike Lam, Professor C Introduction Comparison w/ Java, Memory Model, and Pointers Please go to socrative.com on your phone or laptop, choose student login and join room LAMJMU The C Language
More informationCourse Information and Introduction
August 22, 2017 Course Information 1 Instructors : Email : arash.rafiey@indstate.edu Office : Root Hall A-127 Office Hours : Tuesdays 11:30 pm 12:30 pm. Root Hall, A127. 2 Course Home Page : http://cs.indstate.edu/~arash/cs256.html
More informationCS 261 Fall C Introduction. Variables, Memory Model, Pointers, and Debugging. Mike Lam, Professor
CS 261 Fall 2017 Mike Lam, Professor C Introduction Variables, Memory Model, Pointers, and Debugging The C Language Systems language originally developed for Unix Imperative, compiled language with static
More informationGoals. Java - An Introduction. Java is Compiled and Interpreted. Architecture Neutral & Portable. Compiled Languages. Introduction to Java
Goals Understand the basics of Java. Introduction to Java Write simple Java Programs. 1 2 Java - An Introduction Java is Compiled and Interpreted Java - The programming language from Sun Microsystems Programmer
More informationTopic 6: A Quick Intro To C
Topic 6: A Quick Intro To C Assumption: All of you know Java. Much of C syntax is the same. Also: Many of you have used C or C++. Goal for this topic: you can write & run a simple C program basic functions
More informationAn overview of Java, Data types and variables
An overview of Java, Data types and variables Lecture 2 from (UNIT IV) Prepared by Mrs. K.M. Sanghavi 1 2 Hello World // HelloWorld.java: Hello World program import java.lang.*; class HelloWorld { public
More informationCompSci 125 Lecture 02
Assignments CompSci 125 Lecture 02 Java and Java Programming with Eclipse! Homework:! http://coen.boisestate.edu/jconrad/compsci-125-homework! hw1 due Jan 28 (MW), 29 (TuTh)! Programming:! http://coen.boisestate.edu/jconrad/cs125-programming-assignments!
More informationIntroduction to C An overview of the programming language C, syntax, data types and input/output
Introduction to C An overview of the programming language C, syntax, data types and input/output Teil I. a first C program TU Bergakademie Freiberg INMO M. Brändel 2018-10-23 1 PROGRAMMING LANGUAGE C is
More informationEECS2031 Software Tools
EECS2031 Software Tools SU 2014-2015 The Course EECS2031 Software Tools Lecture: R N203. Tuesdays 18:00 20:00 Labs: LAS (CSEB) 1006 Lab 01 Tuesdays 16:00 18: 00 Lab 02 Wednesdays 17:00 19:00 Course website:
More informationProgramming in C and C++
Programming in C and C++ Types, Variables, Expressions and Statements Neel Krishnaswami and Alan Mycroft Course Structure Basics of C: Types, variables, expressions and statements Functions, compilation
More informationAgenda. CS 61C: Great Ideas in Computer Architecture. Lecture 2: Numbers & C Language 8/29/17. Recap: Binary Number Conversion
CS 61C: Great Ideas in Computer Architecture Lecture 2: Numbers & C Language Krste Asanović & Randy Katz http://inst.eecs.berkeley.edu/~cs61c Numbers wrap-up This is not on the exam! Break C Primer Administrivia,
More informationCS 61C: Great Ideas in Computer Architecture. Lecture 2: Numbers & C Language. Krste Asanović & Randy Katz
CS 61C: Great Ideas in Computer Architecture Lecture 2: Numbers & C Language Krste Asanović & Randy Katz http://inst.eecs.berkeley.edu/~cs61c Numbers wrap-up This is not on the exam! Break C Primer Administrivia,
More information6.S096 Lecture 1 Introduction to C
6.S096 Lecture 1 Introduction to C Welcome to the Memory Jungle Andre Kessler January 8, 2014 Andre Kessler 6.S096 Lecture 1 Introduction to C January 8, 2014 1 / 26 Outline 1 Motivation 2 Class Logistics
More informationCSC231 C Tutorial Fall 2018 Introduction to C
mith College CSC231 C Tutorial Fall 2018 Introduction to C Dominique Thiébaut dthiebaut@smith.edu Learning C in 4 Installments! Dennis Ritchie 1969 to 1973 AT&T Bell Labs Close to Assembly Unix Standard
More informationProgramming in C. What is C?... What is C?
Programming in C UVic SEng 265 C Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier, in 1969, Ritchie and Thompson developed the Unix operating system We will be focusing on a version
More informationSoftware Project. Lecturers: Ran Caneti, Gideon Dror Teaching assistants: Nathan Manor, Ben Riva
Software Project Lecturers: Ran Caneti, Gideon Dror Teaching assistants: Nathan Manor, Ben Riva Emails: (canetti/benriva)@post.tau.ac.il nathan.manor@gmail.com gideon@mta.ac.il http://www.cs.tau.ac.il/~roded/courses/soft-project10.html
More informationComputer Components. Software{ User Programs. Operating System. Hardware
Computer Components Software{ User Programs Operating System Hardware What are Programs? Programs provide instructions for computers Similar to giving directions to a person who is trying to get from point
More informationCS 211 Programming I for Engineers
CS 211 Programming I for Engineers Instructor: Tom Bartenstein Course Web Page: http://www.cs.binghamton.edu/~tbartens/cs211_fall_2018/ 1 Catalog Description Introduction to computer programming with engineering
More informationCS240: Programming in C
CS240: Programming in C Lecture 2: Hello World! Cristina Nita-Rotaru Lecture 2/ Fall 2013 1 Introducing C High-level programming language Developed between 1969 and 1973 by Dennis Ritchie at the Bell Labs
More informationC Compilation Model. Comp-206 : Introduction to Software Systems Lecture 9. Alexandre Denault Computer Science McGill University Fall 2006
C Compilation Model Comp-206 : Introduction to Software Systems Lecture 9 Alexandre Denault Computer Science McGill University Fall 2006 Midterm Date: Thursday, October 19th, 2006 Time: from 16h00 to 17h30
More informationIndex. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions
Index Course Outline Grading Policy Lab Time Distribution Important Instructions 2 Course Outline Week Topics 1 - History and Evolution of Java - Overview of Java 2 - Datatypes - Variables 3 - Arrays 4
More informationSaint Louis University. Intro to Linux and C. CSCI 2400/ ECE 3217: Computer Architecture. Instructors: David Ferry
Intro to Linux and C CSCI 2400/ ECE 3217: Computer Architecture Instructors: David Ferry 1 Overview Linux C Hello program in C Compiling 2 History of Linux Way back in the day: Bell Labs Unix Widely available
More informationLec 3. Compilers, Debugging, Hello World, and Variables
Lec 3 Compilers, Debugging, Hello World, and Variables Announcements First book reading due tonight at midnight Complete 80% of all activities to get 100% HW1 due Saturday at midnight Lab hours posted
More informationCSC116: Introduction to Computing - Java
CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Intro to CSC116 Instructors Course Instructor:
More informationCS 126 Lecture S1: Introduction to Java
CS 126 Lecture S1: Introduction to Java Systems Part of the Class What is the system? - Loosely defined as anything that s not your application Why should you care? - Learn more about the pieces that constitute
More informationProgramming in C UVic SEng 265
Programming in C UVic SEng 265 Daniel M. German Department of Computer Science University of Victoria 1 SEng 265 dmgerman@uvic.ca C Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier,
More informationgcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world
alun@debian:~$ gcc hello.c alun@debian:~$ a.out Hello, world alun@debian:~$ gcc -o hello hello.c alun@debian:~$ hello Hello, world alun@debian:~$ 1 A Quick guide to C for Networks and Operating Systems
More informationProgramming in C. What is C?... What is C?
C Programming in C UVic SEng 265 Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier, in 1969, Ritchie and Thompson developed the Unix operating system We will be focusing on a version
More informationCprE 288 Introduction to Embedded Systems Exam 1 Review. 1
CprE 288 Introduction to Embedded Systems Exam 1 Review http://class.ece.iastate.edu/cpre288 1 Overview of Today s Lecture Announcements Exam 1 Review http://class.ece.iastate.edu/cpre288 2 Announcements
More informationContinued from previous lecture
The Design of C: A Rational Reconstruction: Part 2 Jennifer Rexford Continued from previous lecture 2 Agenda Data Types Statements What kinds of operators should C have? Should handle typical operations
More informationIntroduction to C. Sean Ogden. Cornell CS 4411, August 30, Geared toward programmers
Introduction to C Geared toward programmers Sean Ogden Slide heritage: Alin Dobra Niranjan Nagarajan Owen Arden Robert Escriva Zhiyuan Teo Ayush Dubey Cornell CS 4411, August 30, 2013 Administrative Information
More informationIntroduction to C. Ayush Dubey. Cornell CS 4411, August 31, Geared toward programmers
Introduction to C Geared toward programmers Ayush Dubey Slide heritage: Alin Dobra Niranjan Nagarajan Owen Arden Robert Escriva Zhiyuan Teo Cornell CS 4411, August 31, 2012 Administrative Information Outline
More informationTopic 6: A Quick Intro To C. Reading. "goto Considered Harmful" History
Topic 6: A Quick Intro To C Reading Assumption: All of you know basic Java. Much of C syntax is the same. Also: Some of you have used C or C++. Goal for this topic: you can write & run a simple C program
More informationECE 122 Engineering Problem Solving with Java
ECE 122 Engineering Problem Solving with Java Introduction to Programming for ECE Lecture 1 Course Overview Welcome! What is this class about? Java programming somewhat software somewhat Solving engineering
More informationlast time in cs recitations. computer commands. today s topics.
last time in cs1007... recitations. course objectives policies academic integrity resources WEB PAGE: http://www.columbia.edu/ cs1007 NOTE CHANGES IN ASSESSMENT 5 EXTRA CREDIT POINTS ADDED sign up for
More informationCSC116: Introduction to Computing - Java
CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Schedule Computing Environment AFS (Andrew File System) Linux/Unix Commands Helpful Tricks Computers First Java
More informationChris Riesbeck, Fall Introduction to Computer Systems
Chris Riesbeck, Fall 2011 Introduction to Computer Systems Welcome to Intro. to Computer Systems Everything you need to know http://www.cs.northwestern.edu/academics/courses/213/ Instructor: Chris Riesbeck
More informationCS 253: Intro to Systems Programming 1/21
1/21 Topics Intro to Team-Based Learning (TBL) Syllabus and class logistics What is Systems? 2/21 Team-Based Learning Evidence-based instructional practice proven to increase student motivation and comprehension.
More informationCS 11 java track: lecture 1
CS 11 java track: lecture 1 Administrivia need a CS cluster account http://www.cs.caltech.edu/ cgi-bin/sysadmin/account_request.cgi need to know UNIX www.its.caltech.edu/its/facilities/labsclusters/ unix/unixtutorial.shtml
More informationProgramming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan
Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah Lecturer Department of Computer Science & IT University of Balochistan 1 Outline p Introduction p Program development p C language and beginning with
More informationIntroduction to C Programming
Introduction to C Programming Digital Design and Computer Architecture David Money Harris and Sarah L. Harris 2- C Chapter :: Topics Introduction to C Why C? Example Program Compiling and running a
More informationPhysics 2660: Fundamentals of Scientific Computing. Lecture 3 Instructor: Prof. Chris Neu
Physics 2660: Fundamentals of Scientific Computing Lecture 3 Instructor: Prof. Chris Neu (chris.neu@virginia.edu) Announcements Weekly readings will be assigned and available through the class wiki home
More informationCMPT 115. C tutorial for students who took 111 in Java. University of Saskatchewan. Mark G. Eramian, Ian McQuillan CMPT 115 1/32
CMPT 115 C tutorial for students who took 111 in Java Mark G. Eramian Ian McQuillan University of Saskatchewan Mark G. Eramian, Ian McQuillan CMPT 115 1/32 Part I Starting out Mark G. Eramian, Ian McQuillan
More informationVariables Data types Variable I/O. C introduction. Variables. Variables 1 / 14
C introduction Variables Variables 1 / 14 Contents Variables Data types Variable I/O Variables 2 / 14 Usage Declaration: t y p e i d e n t i f i e r ; Assignment: i d e n t i f i e r = v a l u e ; Definition
More informationPrinceton University Computer Science 217: Introduction to Programming Systems The C Programming Language Part 1
Princeton University Computer Science 217: Introduction to Programming Systems The C Programming Language Part 1 C is quirky, flawed, and an enormous success. While accidents of history surely helped,
More informationCSC116: Introduction to Computing - Java
CSC116: Introduction to Computing - Java Intro to CSC116 Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Course Instructor: Instructors
More informationCS120 Computer Science I. Instructor: Jia Song
CS120 Computer Science I Instructor: Jia Song Instructor Contact Information Instructor: Dr. Jia Song Email: jsong@uidaho.edu (Preferred) Phone: (208) 885-1710 Office: JEB 240 (CSDS Security Lab) JEB 340
More informationCSC 1214: Object-Oriented Programming
CSC 1214: Object-Oriented Programming J. Kizito Makerere University e-mail: jkizito@cis.mak.ac.ug www: http://serval.ug/~jona materials: http://serval.ug/~jona/materials/csc1214 e-learning environment:
More informationCS 110 Computer Architecture. Lecture 2: Introduction to C, Part I. Instructor: Sören Schwertfeger.
CS 110 Computer Architecture Lecture 2: Introduction to C, Part I Instructor: Sören Schwertfeger http://shtech.org/courses/ca/ School of Information Science and Technology SIST ShanghaiTech University
More informationCSC 2405: Computer Systems II
CSC 2405: Computer Systems II Dr. Mirela Damian http://www.csc.villanova.edu/~mdamian/csc2405/ Spring 2016 Course Goals: Look under the hood Help you learn what happens under the hood of computer systems
More informationCS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University
CS5000: Foundations of Programming Mingon Kang, PhD Computer Science, Kennesaw State University Overview of Source Code Components Comments Library declaration Classes Functions Variables Comments Can
More informationIntroduction to Computer Systems
CS-213 Introduction to Computer Systems Yan Chen Topics: Staff, text, and policies Lecture topics and assignments Lab rationale CS 213 F 06 Teaching staff Instructor TA Prof. Yan Chen (Thu 2-4pm, Tech
More informationThe C language. Introductory course #1
The C language Introductory course #1 History of C Born at AT&T Bell Laboratory of USA in 1972. Written by Dennis Ritchie C language was created for designing the UNIX operating system Quickly adopted
More informationIntroduction to C. CS 2060 Week 1. Prof. Jonathan Ventura. Outline Introduction Introduction to C Homework 1 C Coding Style Wrap-up
Outline Introduction Homework 1 C Coding Style Wrap-up CS 2060 Week 1 Outline Introduction Homework 1 C Coding Style Wrap-up 1 Introduction Why C? Syllabus and Course Structure 2 First C example: Hello,
More informationC-Programming. CSC209: Software Tools and Systems Programming. Paul Vrbik. University of Toronto Mississauga
C-Programming CSC209: Software Tools and Systems Programming Paul Vrbik University of Toronto Mississauga https://mcs.utm.utoronto.ca/~209/ Adapted from Dan Zingaro s 2015 slides. Week 2.0 1 / 19 What
More informationOutline. Lecture 1 C primer What we will cover. If-statements and blocks in Python and C. Operators in Python and C
Lecture 1 C primer What we will cover A crash course in the basics of C You should read the K&R C book for lots more details Various details will be exemplified later in the course Outline Overview comparison
More informationExpressions and Data Types CSC 121 Spring 2015 Howard Rosenthal
Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types
More informationCourse information. Petr Hnětynka 2/2 Zk/Z
JAVA Introduction Course information Petr Hnětynka hnetynka@d3s.mff.cuni.cz http://d3s.mff.cuni.cz/~hnetynka/java/ 2/2 Zk/Z exam written test zápočet practical test in the lab max 5 attempts zápočtový
More informationmith College Computer Science CSC352 Week #7 Spring 2017 Introduction to C Dominique Thiébaut
mith College CSC352 Week #7 Spring 2017 Introduction to C Dominique Thiébaut dthiebaut@smith.edu Learning C in 2 Hours D. Thiebaut Dennis Ritchie 1969 to 1973 AT&T Bell Labs Close to Assembly Unix Standard
More informationTutorials. Tutorial every Friday at 11:30 AM in Toldo 204 * discuss the next lab assignment
60-212 subir@cs.uwindsor.ca Phone # 253-3000 Ext. 2999 web site for course www.cs.uwindsor.ca/60-212 Dr. Subir Bandyopadhayay Website has detailed rules and regulations All assignments and labs will be
More informationGetting started with Java
Getting started with Java by Vlad Costel Ungureanu for Learn Stuff Programming Languages A programming language is a formal constructed language designed to communicate instructions to a machine, particularly
More informationFeatures of C. Portable Procedural / Modular Structured Language Statically typed Middle level language
1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC
More information2/12/17. Goals of this Lecture. Historical context Princeton University Computer Science 217: Introduction to Programming Systems
Princeton University Computer Science 217: Introduction to Programming Systems The C Programming Language Part 1 For Your Amusement C is quirky, flawed, and an enormous success. While accidents of history
More informationWelcome (back) to CS1007!
Welcome (back) to CS1007! Introduction to Computer Science in Java Spring 2002 Section 001: TR 2.40pm - 3.55pm 301 Pupin Section 002: TR 11.00am - 12.15pm 209 Havemeyer Professor Elizabeth Sklar email:
More informationCSCI 2132: Software Development. Norbert Zeh. Faculty of Computer Science Dalhousie University. Introduction to C. Winter 2019
CSCI 2132: Software Development Introduction to C Norbert Zeh Faculty of Computer Science Dalhousie University Winter 2019 The C Programming Language Originally invented for writing OS and other system
More informationProgramming Languages Part 1. Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University
Programming Languages Part 1 Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University 1 For Your Amusement Java is C++ without the guns, knives, and clubs. James Gosling Python is the most powerful
More informationIntroduction to Computer Systems
Introduction to Computer Systems Today: Welcome to EECS 213 Lecture topics and assignments Next time: Bits & bytes and some Boolean algebra Fabián E. Bustamante, Spring 2010 Welcome to Intro. to Computer
More informationExpressions and Data Types CSC 121 Fall 2015 Howard Rosenthal
Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types and
More informationIntroduction to C. Robert Escriva. Cornell CS 4411, August 30, Geared toward programmers
Introduction to C Geared toward programmers Robert Escriva Slide heritage: Alin Dobra Niranjan Nagarajan Owen Arden Cornell CS 4411, August 30, 2010 1 Why C? 2 A Quick Example 3 Programmer s Responsibilities
More informationCSC 1600 Memory Layout for Unix Processes"
CSC 16 Memory Layout for Unix Processes" 1 Lecture Goals" Behind the scenes of running a program" Code, executable, and process" Memory layout for UNIX processes, and relationship to C" : code and constant
More informationCS 110 Computer Architecture. Lecture 2: Introduction to C, Part I. Instructor: Sören Schwertfeger.
CS 110 Computer Architecture Lecture 2: Introduction to C, Part I Instructor: Sören Schwertfeger http://shtech.org/courses/ca/ School of Information Science and Technology SIST ShanghaiTech University
More informationOutline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors
Outline Overview history and advantage how to: program, compile and execute 8 data types 3 types of errors Control statements Selection and repetition statements Classes and methods methods... 2 Oak A
More informationCS 61C: Great Ideas in Computer Architecture Lecture 2: Introduction to C, Part I
CS 61C: Great Ideas in Computer Architecture Lecture 2: Introduction to C, Part I Instructors: Vladimir Stojanovic & John Wawrzynek http://inst.eecs.berkeley.edu/~cs61c/ 1 Agenda Compile vs. Interpret
More informationTTh 9.25 AM AM Strain 322
TTh 9.25 AM - 10.40 AM Strain 322 1 Questions v What is your definition of client/server programming? Be specific. v What would you like to learn in this course? 2 Aims and Objectives v Or, what will you
More information5/3/2006. Today! HelloWorld in BlueJ. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont.
Today! Build HelloWorld yourself in BlueJ and Eclipse. Look at all the Java keywords. Primitive Types. HelloWorld in BlueJ 1. Find BlueJ in the start menu, but start the Select VM program instead (you
More informationProgramming Languages: Part 1. Robert M. Dondero, Ph.D. Princeton University
Programming Languages: Part 1 Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn/review: Subsets of C, Java, and Python... That are appropriate for COS 333... Through example programs
More informationCPSC 213. Introduction to Computer Systems. Numbers and Memory. Unit 1a
CPSC 213 Introduction to Computer Systems Unit 1a Numbers and Memory 1 The Big Picture Build machine model of execution for Java and C programs by examining language features and deciding how they are
More information