In this folder, create a runnable macOS arm64 Mach-O executable named hello_world that prints exactly:
hello world
(with a trailing newline is OK)
Hard constraints (do not violate):
- You MUST generate the Mach-O file completely from scratch by writing raw bytes. No copying/patching any existing binaries or templates, no
cpfrom system binaries, no downloading, no embedding prebuilt blobs. - Do NOT use any compiler, assembler, linker, or tool that internally assembles/links (no clang/cc/as/ld/nasm/yasm/llvm-mc/otool as a generator, etc).
- You MAY use basic file/byte tools only (e.g.,
python3 -c,printf,dd,perl,xxd,hexdump) to emit bytes, andcodesignpurely for ad-hoc signing.