vault backup: 2024-11-10 21:56:06

This commit is contained in:
zleyyij 2024-11-10 21:56:06 -07:00
parent a1a7261269
commit d1232122ff

View File

@ -59,8 +59,8 @@ main.o: main.c f1.h
f1.o: f1.c f1.h f2.h f1.o: f1.c f1.h f2.h
gcc -c f1.c gcc -c f1.c
f2.o: f1.o f2.c f2.h f2.o: f2.c f2.h
gcc -c f2.c f1.o gcc -c f2.c
``` ```
--- ---
@ -72,11 +72,11 @@ f2.o: f1.o f2.c f2.h
> (b). If `f1.c` is changed after the program has been built, which files need to be recompiled? > (b). If `f1.c` is changed after the program has been built, which files need to be recompiled?
All dependents of `f1.c` and `f1.c`, in this case `f1.c`, `main.c`, and `f2.c`. Just `f1.c`.
> (c). If `f1.h` is changed after the program has been built, which files need to be recompiled? > (c). If `f1.h` is changed after the program has been built, which files need to be recompiled?
All source files. All source files, because they all include `f1.h`.
> (d). If `f2.h` is changed after the program has been built, which files need to be recompiled? > (d). If `f2.h` is changed after the program has been built, which files need to be recompiled?