| Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 
        | compile to new executable name |  | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | source.c(text)->PREPROCESSOR-> source.i(moifided text)->COMPILER->
 source.s(assembly text)->ASEMBLER->
 source.o(binary)->LINKER->
 Execuatble binary
 |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | gcc –E –o welcome.i welcome.c |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | gcc –S –o welcome.s welcome.i |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | gcc –c –o welcome.o welcome.s |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 
        | how to examine binary files |  | Definition 
 
        | – objdump –d (-d to disassemble)
 |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | kilo 10^3 mega 10^6
 giga 10^9
 tera 10^12
 peta 10^15
 |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Mili 10^-3 micro 10^-6
 nano 10^-9
 pico 10^-12
 |  | 
        |  | 
        
        | Term 
 
        | hex letter representation |  | Definition 
 
        | 10 A 1010 11 B 1011
 12 C 1100
 13 D 1101
 14 E 1110
 15 F 1111
 |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | byte 1 byte word 2 bytes
 doubleword 4 bytes
 quadword 8 bytes
 double quadword 16 bytes
 |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 
        | bitwise AND Representation |  | Definition 
 
        | &  0&0=0 0&1=0 1&0=0 1&1=1 |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | ^ 0^0=0 0^1=1 1^0=1 1^1=0 |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | Big endian - most significant byte first Little endian - least significant byte first
 |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | get ones comp (flip bits) add one
 |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | multiply decimal by 2  record whole number repeat until decimal =0; |  | 
        |  | 
        
        | Term 
 
        | machine representation of floats |  | Definition 
 
        | |sign(1)|Expontent(8)| mantissa(23) |  | 
        |  | 
        
        | Term 
 
        | steps for converting to float |  | Definition 
 
        | set sign bit move decimal to behind first 1 exponent+127 convert to binary ,add after sign bit  add number + 0's to fill up to 23 spots |  | 
        |  | 
        
        | Term 
 
        | switch to see assembly output |  | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | overall 16 bits composed of AH and AL |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 32 bits 16bits + AX registers
 |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | pointers to items in data segment |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | destination pointer for string opps |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | disembles current function |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | list files in a directory |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | compares two files and shows the lines that are different |  | 
        |  | 
        
        | Term 
 
        | unix shell command: mkdir |  | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | Renames a file or moves it from one directory to another directory. |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | print current working directory |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 
        | Unix shell command: rmdir |  | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | shows the next page of a file |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | see permissions of a file |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | saves programs output to a file |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | compile without running the linker |  | 
        |  | 
        
        | Term 
 
        | Steps for calling a fuction in assembly |  | Definition 
 
        | From the caller:   save the callers state pass the paramaters of the function save return address give control to the function   In the function: allocate space for locals execute function instructions return result give control back to the caller. |  | 
        |  | 
        
        | Term 
 
        | In the stack where are the local varaibles and where are the parameters |  | Definition 
 
        | local variables are above (negative)the old base pointer and parameters are below the old base pointer (positive) |  | 
        |  | 
        
        | Term 
 
        | what happens at the begining and end of every function call |  | Definition 
 
        | begining pushl %ebp movl %ebp,%esp   end movl %ebp,%esp popl %ebp   |  | 
        |  | 
        
        | Term 
 
        | four basic read-write memory regions in a program |  | Definition 
 
        | Stack   Data- contains global and static variables used by the program that are  initialized   BSS-uninitialized global variables and static variables that are initialized  to zero   Heap- area is managed by malloc, realloc, and free stack-contains frame pointers* |  | 
        |  | 
        
        | Term 
 
        | fuction to check if machine is big/little edian |  | Definition 
 
        | int x=0xFF; char s*=&x; return *s==0; |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 
        | what does a system call do |  | Definition 
 
        | stops current program to call the kernal to run and then control is returned to the program |  | 
        |  | 
        
        | Term 
 
        | what does a system call do |  | Definition 
 
        | stops current program to call the kernal to run and then control is returned to the program |  | 
        |  |