RecurLoop/ Documentation
RecurLoop/APIv0.2.12

emit

Write native code or exact bytes.

recurloop
emit executable "path" name = fn () -> i64 { ... }
emit object "path.o" name = fn (...) -> result { ... }
emit raw "path.bin" = hex { ... }

Writes a native executable, relocatable object or exact bytes. Add debug after executable to retain symbols and debugging metadata.

Syntax

recurloop
(executable [debug] | object | raw) <path:string> <definition:raw>

Example

recurloop
emit executable "app" app_main = fn () -> i64 { return 0 }

Arguments

  • —
  • : —
  • definition — name = fn (...) -> type {...}; raw uses = hex {...}.
  • path — Destination file.