Computer
Systems

Spring 2013
course
navigation

Jan 29

preliminaries

unix command line

ssh scp man more nano ~ . .. ls cd mkdir rm gcc make chmod > < & % alias bash .bashrc printenv (echo $PATH)

editing, compiling, running a C program

There are a number of methods; discuss which ones you like and common practices.
/* total.c | Jim M * simple class example * * $ gcc total.c -o total * $ ./total * Total of integers from 17 to 203 is 20570. */ #include <stdio.h> int main(){ int i; int low = 17; int high = 203; int total = 0; for (i = low; i <= high; i++){ total += i; } printf("Total of integers from %i to %i is %i.\n", low, high, total); return 0; }
Look at your examples :
Then look deeper at types, sizeof(), pointers, struct using my code in C examples :
See how far we get, and continue Thursday with more C and the bit/byte/int/data material in chapter 2.
Topics coming up:
http://cs.marlboro.edu/ courses/ spring2013/systems/ notes/ Jan_29
last modified Thursday January 24 2013 11:01 pm EST