# TAOCP 1.4.1 Subroutines

> Week 45 of the cracked.guide path: Knuth 1.4.1 Subroutines; LeetCode: 2 NeetCode 150 problems.

Week 45 of 145 on cracked.guide, in TAOCP Vol 1: Fundamental Algorithms: TAOCP 1.4.1 Subroutines and 2 NeetCode 150 problems. The reading guides budget about 5 hours.

## Key facts {#key-facts}

- [TAOCP 1.4.1 Subroutines](https://cracked.guide/guide/knuth-w031-0): How to package code as a subroutine in MIX: linkage, passing parameters, returning, and the trade-offs between in-line code and calls.
- Phase: TAOCP Vol 1: Fundamental Algorithms, weeks 29 to 63.
- Updated October 20, 2026.

## By the end of this week you can {#objectives}

- Implement a MIX subroutine that returns through the rJ register.
- Explain how the entry code stores the return address into the exit jump.
- Compare in-line code with subroutine calls in space and time.

## This week's tasks {#tasks}

- [TAOCP 1.4.1 Subroutines](https://cracked.guide/guide/knuth-w031-0): about 5 hours
- LeetCode: 2 NeetCode 150 problems

Previous: [Week 44](https://cracked.guide/curriculum/week/44) · Next: [Week 46](https://cracked.guide/curriculum/week/46)

---

Source: https://cracked.guide/curriculum/week/45
cracked.guide: A free, dated 145-week path to getting genuinely cracked at programming.
