80 likes | 218 Views
CS252: Systems Programming. Ninghui Li Exam 1 Review. Topic 1: C Programming. General C programming questions Not limited to things explicitly covered in this class. Pointer usage Memory allocation errors Array vs pointers Function pointers and generic mappers.
E N D
CS252: Systems Programming Ninghui Li Exam 1 Review
Topic 1: C Programming • General C programming questions • Not limited to things explicitly covered in this class. • Pointer usage • Memory allocation errors • Array vs pointers • Function pointers and generic mappers
Topic 2: Program Structures & GDB • Steps of building a program • Static vs. shared library • Memory structure of a program • Using GDB
Topic 3: Unix Systems Overview • i-node structure (data block indicies) • Directory structure • Hard link vs soft link • File permission bits (what are required for accesses) • Processes • Redirection stdin/stdout/stderr (how to use them in command line, not how to implement them)
Topic 4: Regular Expressions • Understand what kind of strings are matched by a regular experssion • Able to write a regular expression to match certain sets of strings
Topic 5: Common Unix Commands • Know what the commands listed in slides do • Write simple shell scrits
Topic 6 & Topic 7 Part 1: Lex & Yacc • Understand Lex & YACC code • Be able to write simple ones
Topic 8: Kernel Mode, System Calls, etc. • User mode vs kernel mode • Interrupts • Poling (synchronous) vs asynchronous • System calls