CompOrg Fall 2004

Announcements

Office Hours
Dave Hollinger
hollingd@cs.rpi.edu
Tues, Fri 10-12 Amos Eaton 110
Qinghua Xu
xuq@cs.rpi.edu
Thurs 4-6
Science Center Bray Room (1W01)
Andrey Sarayev
saraya@cs.rpi.edu
Wed 10AM-2PM
Science Center Bray Room (1W01)
Lab Sections
Section 1 Wednesdays, 10-11:50 SC 2C14
Section 2 Wednesdays, 12-1:50 SAGE 2715
Section 3 Wednesdays, 2-3:50 SAGE 2715
Section 3 Wednesdays, 6-7:50 SAGE 2715

The CompOrg Final Exam is Monday, Dec 20th from 3:00-6:00 in DCC308
Test Topics
Review Sessions:
      Sunday Dec 12th, from 7:00-9:00PM in DCC308,
       Sunday, Dec 19th from 7:00-9:00PM in DCC308

Old Final Exams: Spring 2004 (with answers)     Fall 2003     Fall 2002 (with answers)

Some IA32 Help:
IA32 Reference
Programmer's Reference


Test #1 is on Thursday, Sept 30th.
Review session in class on Monday, Sept 27th
A list of test topics is available: Test #1 Topics
Test #1 from Spring 2004: Test w/answers
Test #1 answers: Test1ans.pdf

 

Test #2 is on Thursday, Nov 4th.
Review session in class on Monday, Nov 1st
A list of test topics is available: Test #2 Topics
Test #2 from Spring 2004
Test w/answers (much of this is material we have not yet covered)
Test #2 answers: Test2ans.pdf
Test #2 average: 75.3


O'Reilly books are available online (to RPI students) - here are some C programming books:

Practical C Programming C Pocket Reference


Homework


HW Due DateAssignmentFAQ
1 9/27/2004 (11PM) C Programming  
2,3 10/26/2004 (11:59PM) ***new due date*** Bomb Squad FAQ
4 11/11/2004 (11:59PM) Buffer Overflow FAQ
5 12/8/2004 (11:59PM) Y86 Sequential Implementation and HCL


Labs


Lab#DateSubjectWriteup
19/8 Course Linux accounts and Unix skills Writeup
29/15C Programming and Pointers Writeup
39/22C, Overflow, Logic and the time comand Writeup
49/29C programming, strings and pointers Writeup
510/6Assembly Code and gdb Writeup
610/13Assembly Subroutines, Arrays and Strings Writeup
710/20Assembly Code Bombs (HW2 Practice) Writeup
C code for lab7 programs
810/27C Structures, the Stack and Buffer Overflow Writeup
911/3Y86 Instruction Set Writeup
1011/17Y86 Sequential Implementation and Y86 simulator Writeup
1112/1 Optimization, Timing and Profiling Writeup
1212/7Memory Performance (Cache Friendly Code) Writeup
extraextraCache Design Lab Writeup


Lecture Notes


TopicPowerpointAdobe PDFLinks
Course Introduction intro.ppt intro.pdf  
Topic Overview and Background overview.ppt overview.pdf  
Data Representation datarep.ppt datarep.pdf  
Data Representation Part 2 datarep2.ppt datarep2.pdf
  • showbytes.c
  • add2nums.c
  • mult2nums.c
  • Crash Course on Using Unix unixcc.ppt unixcc.pdf
  • Unix FAQ
  • Unix Progamming FAQ
  • Unix Tutorials
  • Sample Unix Session unixsession.ppt unixsession.pdf  
    C Programming for C++ Programmers cprogcc.ppt cprogcc.pdf
  • C Library man pages (linuxcentral.com)
  • Floating Point fp.ppt fp.pdf  
    Instruction Set Architecture InstructionSetArch.ppt InstructionSetArch.pdf  
    Instruction Sets IS1.ppt IS1.pdf  
    Instruction Sets: Control IS-Control.ppt IS-Control.pdf  
    Procedures and the Stack stack.ppt stack.pdf  
    Stack Samples StackSamples.ppt StackSamples.pdf
  • add.c
  • blahfoo.c
  • crash.c
  • Assembly and C Data Structures DataStructures.ppt DataStructures.pdf  
    IA32 Floating Point IA32Float.ppt IA32Float.pdf  
    Buffer Overflow overflow.ppt overflow.pdf
  • Sample code from slides
  • Logic Design Logic.ppt Logic.pdf  
    Common Combinational Circuits Adder.ppt Adder.pdf  
    Sequential Logic Flops.ppt Flops.pdf  
    Y86 Instruction Set Y86.ppt Y86.pdf
  • Y86 Simulator (available via Textbook Home page)
  • Y86 Instruction Set Reference
  • Y86 Sequential Implementation seq.ppt seq.pdf
  • HCL for simple Y86 Sequential
  • Y86 Pipelined Implementation Y86Pipe.ppt Y86Pipe.pdf  
    Pipelining Summary pipe-summary.ppt pipe-summary.pdf  
    Code Optimization optimization.ppt optimization.pdf  
    Measuring Execution Time timing.ppt timing.pdf  
    Memory Hierarchy memoryhierarchy.ppt memoryhierarchy.pdf  
    Cache Design Caching.ppt Caching.pdf
  • Caching Arch Lab (optional)
  • Cache and Programs CacheCode.ppt CacheCode.pdf  
    Virtual Memory virtualmemory.ppt virtualmemory.pdf  


    WWW Resources