Lab 1 check
Run the focused RTC test first. It is faster than launching an example and gives a direct signal about the helper contracts. Then run the headless example with a fixed virtual RTC time so output is deterministic.
sh
lcom-ng test rtc
lcom-ng run --headless --rtc 2026-06-16T12:34:56 -- build/examples/rtc_dateDiscussion prompts
- Why does
rtc_read_datereceive a pointer instead of returning a struct? - What goes wrong if the date changes between reading day, month, and year?
- Which helpers belong in
labs/rtc/rather than a reusablelib/rtc/module?
External reading
The LCOM bitwise chapter and RTC chapter are useful companions. For C details, review the GNU C notes on bitwise operations, shift operations, and variadic functions. For the operating-system view, read the OSDev CMOS overview.