Performance Evaluation of Computer Networks Professor Bob Kinicki Computer Science Department.
CS2303 C14 Systems Programming Concepts Bob Kinicki.
-
Upload
cecily-wood -
Category
Documents
-
view
213 -
download
1
Transcript of CS2303 C14 Systems Programming Concepts Bob Kinicki.
![Page 1: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/1.jpg)
CS2303 C14Systems Programming
Concepts
CS2303 C14Systems Programming
Concepts
Bob Kinicki
![Page 2: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/2.jpg)
IntroductionIntroduction
Systems Programming
![Page 3: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/3.jpg)
33
IntroductionIntroduction
Survey and TA/SA Introductions Pause to Look Backwards and Forwards
Course Objectives Course Operation/Expectations Course Plan and Syllabus Systems Concepts Higher Level Language History ‘Old’ Development Environment
– C and C++Systems Programming Introduction
![Page 4: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/4.jpg)
44
Quick Look Backwards/Forwards
Quick Look Backwards/Forwards
Computing Devices– From mainframes to PCs to smart phones to ??
Changes in WPI CS Curriculum Instructor Students
– Expected Background– Going Forward– Your Future
Systems Programming Introduction
![Page 5: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/5.jpg)
55
To expose students to the low level systems interface ’grunge’ clearly visible in C.
To learn to program in C++ by learning to program in C first.
To further develop the ability to design programs with emphasis on the abstract view of data structures.
To get experience with low level implementation of data structures in C.
CS2303 Course ObjectivesCS2303 Course Objectives
Systems Programming Introduction
![Page 6: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/6.jpg)
66
To learn the advantages of programming in an object-oriented language such as C++.
To experience programming in the
Large
CS2303 Course ObjectivesCS2303 Course Objectives
Systems Programming Introduction
![Page 7: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/7.jpg)
77
Pointers!!
CS2303 Course ObjectivesCS2303 Course Objectives
Systems Programming Introduction
![Page 8: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/8.jpg)
88
The course web page is an essential student asset.
* Students are responsible for all information on web page!
5 Required Labs 5 Programming Assignments
2 Closed Book Exams
Course Operation/Expectation
Course Operation/Expectation
Systems Programming Introduction
![Page 9: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/9.jpg)
9
Course Plan and SyllabusCourse Plan and Syllabus To cover the details of C briskly.
– Assumes students already have an understanding of iteration and conditional constructs.
– Using only C I/O {grunge as promised!} at first.
To introduce data structures in C by doing at least one program with structs and call by value.
To finish up with as much C++ as possible.
{Note - reading of the textbook will require jumping around during the C portion of the course.}
Systems Programming Introduction
![Page 10: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/10.jpg)
10
Systems ConceptsSystems Concepts
The goal of this programming course is to expose the students to places where the software and hardware meet or where the application interfaces with the operating system (OS).
A ‘systems viewpoint’ includes resource management (CPU and memory), process scheduling, concurrency and performance.
{But this is too much material for this instance of the course!}Systems Programming Introduction
![Page 11: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/11.jpg)
11
Systems Performance Viewpoint
Systems Performance Viewpoint
The assignments include simulation and introduce two system performance concerns - efficiency and fairness.
The other important approach to appreciate is the computer scientist abstraction concept of insulating interfaces from ‘under-the-hood’ details (e.g., virtual memory and loaders).
Systems Programming Introduction
![Page 12: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/12.jpg)
1.5 Types of Programming Languages
1.5 Types of Programming Languages
Systems Programming Introduction 12
Although assembly-language code is clearer to humans, it’s incomprehensible to computers until translated to machine language.
To speed the programming process even further, high-level languages were developed in which single statements could be written to accomplish substantial tasks.
High-level languages allow you to write instructions that look almost like everyday English and contain commonly used mathematical expressions.
Translator programs called compilers convert high-level language programs into machine language.
Interpreter programs were developed to execute high-level language programs directly, although more slowly than compiled programs.
Scripting languages such as JavaScript and PHP are processed by interpreters.
Copyright © Pearson, Inc. 2013. All Rights Reserved.
![Page 13: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/13.jpg)
1313
Higher LevelProgramming Languages History
Higher LevelProgramming Languages History
FortranW 1957 COBOL 1959Algol 1960 1968 Lisp 1959
PL1 1964 APL 1962 PascalW 1970 SNOBOL 1967
CW 1972 Prolog 1972 Basic 1975 SchemeW 1975
C++W 1986 ADA 1983
JavaW1995 PythonW 1989
Systems Programming Introduction
![Page 14: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/14.jpg)
1414
C Program Development Environment
C Program Development Environment
Standard Steps1. Edit2. Preprocess3. Compile4. Link5. Load6. Execute
Fig. 1.1 | Typical C development environment.
Deitel & Deitel
2007 Pearson Ed -All rights reserved.
Systems Programming Introduction
![Page 15: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/15.jpg)
15
User Memory ProtectionUser Memory Protection
Systems Programming Introduction
![Page 16: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/16.jpg)
16
Virtual MemoryVirtual Memory
Systems Programming Introduction
![Page 17: CS2303 C14 Systems Programming Concepts Bob Kinicki.](https://reader036.fdocuments.us/reader036/viewer/2022072013/56649e4a5503460f94b3e920/html5/thumbnails/17.jpg)
1717
Review of IntroductionReview of Introduction
Course Objectives Course Operation/Expectations
Course Plan and Syllabus C, data structures, C++ Systems Viewpoint {more later}
Program Development EnvironmentSystems Programming Introduction