# 14.6. Term sharing and inlining

Morloc Manual > Compiler Architecture | https://morloc-project.github.io/docs/compiler-architecture/compiler-sharing.html | prev: https://morloc-project.github.io/docs/compiler-architecture/compiler-realization.md | next: https://morloc-project.github.io/docs/compiler-architecture/compiler-serialization.md

**STUB**: Specifies how the compiler keeps generated code proportional to the source. Defines let-sharing, inline-by-name, and the conditions for each, and shows how naive substitution would duplicate terms exponentially and how sharing prevents that while preserving evaluation semantics.
