> For the complete documentation index, see [llms.txt](https://hansimov.gitbook.io/csapp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hansimov.gitbook.io/csapp/labs/data-lab.md).

# 实验 1：Data Lab

## 实验附件

* README
  * <http://csapp.cs.cmu.edu/3e/README-datalab>
* Writeup
  * <http://csapp.cs.cmu.edu/3e/datalab.pdf>
* 版本历史
  * <http://csapp.cs.cmu.edu/3e/datalab-release.html>
* 自学材料
  * <http://csapp.cs.cmu.edu/3e/datalab-handout.tar>

## 实验简介

学生可以实现简单的逻辑函数、二进制补码和浮点函数，但必须使用 C 语言的一个高度受限的子集。例如，可能会要求仅用位级运算和直线代码（straightline code）来计算一个数的绝对值。该实验帮助学生理解 C 语言数据类型的位级表示和数据操作的位级行为。

## 参考链接

* CSAPP 之 DataLab详解，没有比这更详细的了 - 知乎&#x20;
  * <https://zhuanlan.zhihu.com/p/59534845>
* CSAPP DataLab 题解 | Claude's Blog&#x20;
  * <http://claude-ray.com/2019/10/02/csapp-datalab/>
* CSAPP - datalab · Mcginn's Blog&#x20;
  * <https://mcginn7.github.io/2020/02/14/CSAPP-datalab/>
* 【读厚 CSAPP】I Data Lab | 小土刀 2.0&#x20;
  * <https://wdxtub.com/csapp/thick-csapp-lab-1/2016/04/16/>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hansimov.gitbook.io/csapp/labs/data-lab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
