Git Product home page Git Product logo

csapp's Introduction

CSAPP

CSAPP Lab 2022-09-01至2022-12-01

Data Lab,在题目限制下实现相关二进制操作和浮点数操作。

  • 主要修改 Data Lab/datalab-handout/ 文件夹下的 bits.c 文件

Bomb Lab,个人认为最有趣的Lab,通过对汇编代码debug找出方法运行所需要的参数。

  • 答案为 Bomb Lab/bomb/ 文件夹下的 ans.txt 文件,每一行是一个方法的参数。

Attack Lab,就是让我们破坏程序的运行顺序,让程序执行我们指定的代码。

  • 答案为 Attack Lab/target1/ans/ 文件夹下的 touch1 - touch4,主要是通过缓冲区溢出,修改函数的返回位置,或者是传入特殊的二进制串,让程序运行二进制串对应的指令。

Cache Lab,分为两部分:

  • Part A:缓存模拟器,个人使用LRU策略进行缓存模拟
  • Part B:对矩阵转置函数进行优化,利用局部性原理,对矩阵进行分块处理

主要修改 Cache Lab/cachelab-handout/ 文件夹下的 csim.c,trans.c 文件,笔记地址:Cache Lab

Malloc Lab,模拟内存分配:见笔记 Malloc Lab

Shell Lab,模拟Shell终端,主要考察线程的和信号的一些操作,修改的文件为 Shell Lab/shlab-handout/tsh.c 文件

参考文章:周小伦CASPP Lab

csapp's People

Contributors

lemonulc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.