knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers,...

6
Systems Programming, Unix and C Programming

Upload: patience-merritt

Post on 24-Dec-2015

224 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting

Systems Programming, Unix and C Programming

Page 2: Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting

Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting languages.

Knowledge of file system Shell environment is rich with its capabilities,

options and configurability. Why Unix? Written in C, source accessibility Why C? least abstracted, closer to hardware,

memory management is direct through pointers. Three tools: a shell, a text editor, a debugger

Systems Programming

Page 3: Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting

A debugger relates an executable to the original variable names and source code so that a programmer can track execution

Lets go through the C programs and the debugging methodology discussed in the chapter 1

The debugger

Page 4: Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting

Log into timberlake or any linux system you may have access to

Take your time to create the C programs in section, all of them, and familiarize yourself with the C programs and the systematic debugging process

To do

Page 5: Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting

Knowledge of syntax of the language How to use the language: this is a skill/art Break the problems into sub problems Code and solve each sub problem

independently Study the program in section 1.4: given a

number determine the sum of unique squares that sum up to that number.

Given 13, 13 = 9 + 4 = 32 + 22

Program development (1.4)

Page 6: Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting

Go through the programs developed. Work out the problems at the end of the

chapter.

Section 1.5 : Review of C