Conceptual
Login

Dead Code Elimination

The compiler or linker walks the call graph from exported entry points and deletes every function and global nothing reachable ever uses. In Wasm builds it is the single biggest size lever, because one stray import (like a formatting or panic path) can drag in tens of kilobytes of transitively reachable code.

This Concept is waiting for its first lesson!

The compiler or linker walks the call graph from exported entry points and deletes every function and global nothing reachable ever uses. In Wasm builds it is the single biggest size lever, because one stray import (like a formatting or panic path) can drag in tens of kilobytes of transitively reachable code.

Are you a teacher? Sign in to start contributing.

Sign In