Files
Claude 3ac904b451 Add the runtime library, libmacrt.a, and archive support in the linkers
runtime/build.sh builds compiler-rt's builtins (the 68000's 32-bit
multiply and divide, 64-bit arithmetic, soft float on 68k, conversions)
and runtime/string.c (the mem* functions clang calls for structure
copies, and the common str* ones) into lib/m68k/libmacrt.a and
lib/ppc/libmacrt.a.

codelink.py and peflink.py read ar archives (tools/link/archive.py) and
link only the members a program needs; macapp.py links the runtime
library when it has been built.

tests/runtime.c checks every helper. tests/run.sh builds the library
when LLVM_SRC is set and runs the 68k test as a 68000 and a 68020 in
sim68k; CI does both, with compiler-rt from the prebuilt clang's commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSuLMRWD4gxrktBpac
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-08 09:32:32 +00:00

4 lines
26 B
Plaintext