Document why architecture targets use separate crates

This commit is contained in:
Rui Ueyama committed 2026-09-14 23:01:08 +09:00
1 parent 3d67399506
commit e2e85b3fc7
1 file changed
+11
+11
View File
@@ -0,0 +1,11 @@
# Architecture crates
Each subdirectory is a small crate that instantiates the generic linker for
one target architecture. Separate crates let Cargo compile the architectures
in parallel. Instantiating all targets in one crate leaves a long serial
compilation step.
The shared linker implementation lives in [`src/`](../src/), with
architecture-specific code in [`src/arch/`](../src/arch/). These crates provide
entry points that the [`cli/`](../cli/) executable selects for the input
files' target.