Chapter 4

Processor Architecture

The speed at which modern CPUs perform computations still blows my mind daily.

by Markus Persson

This chapter focus on processor architecture and design a little simple processor and yas – a assemble language – designed running on it.

you can access the processor simulation code and simulation manual from csapp official site.

simulation code

simulator manual

I have saved the simulation code in directory chapter4/code/sim.

Highly recommend you read the manual and README in code to know how it works and how to test yas code.

solutioncode filetest way
4.45
4.46
4.47bubble-sort/bubble-sort-pointer.*output, assert
4.48bubble-sort/bubble-sort-pointer-3-cmove.*output
4.49bubble-sort/bubble-sort-pointer-1-cmove.*output
4.50switch/*output
4.51
4.52sim/seq/seq-full.hclyas
4.53sim/pipe/pip-stall.hclyas
4.54sim/pipe/pip-full.hclyas
4.55sim/pipe/pip-nt.hclyas
4.56sim/pipe/pip-btfnt.hclyas
4.57sim/pipe/pip-lf.hclyas
4.58sim/pipe/pip-1w.hclyas
4.59
comments powered by Disqus