debugger-lab/README.md
2026-10-20 23:15:48 -06:00

17 lines
718 B
Markdown

# Week 9 debugger lab
| File | What it is | Who owns it |
| :--- | :--- | :--- |
| `memmap.c` | A short program that prints where its globals, static, locals, array, pointer and string literal live | Given, do not change |
| `literal.c` | The same letters as an array and as a string literal, with the illegal write behind a define | Given, do not change |
```sh
cc -std=c17 -Wall -Wextra -g -O0 memmap.c -o memmap
./memmap
cc -std=c17 -Wall -Wextra -g -O0 literal.c -o literal
./literal
cc -std=c17 -Wall -Wextra -g -O0 -DWRITE_THROUGH_LITERAL literal.c -o literal-write
./literal-write
```
Style is enforced by `CS2060-ProgrammingWithC/STYLE.md`; `python3 tools/check_c_style.py src/*.c` reports layout problems.