CS33: Introduction to Computer Organization

Each week, the online notes consist of two parts: A distillation of the online lecture materials Discussion Slide. Week 1 Discussion Materials Lecture one covers the following topics: bit manipulation. representation of numbers in computers. These two are quite simple: just need some exercises to master them. Additional stuff: use the GDB debugger in VIM: follows from this link . Discussion Slide For lab0, the following: #include <stdio.h> int ezThreeFourth(int x) { int threeX = (x << 1) + x; // Multiply x by 3 using bit shifts and addition int result = threeX >> 2; // Divide by 4 using right shift if (x < 0) { result += (threeX & 3) ?...

01 Apr 2024 · Fred Xu