Hacker News new | ask | show | jobs
by otini 3491 days ago
Well what macros only ever do is generate OCaml ASTs, so the should work whatever the compilation target is.
1 comments

Things like the ^ quoting get more complex. You need to quite the target's version of the module.
Oh I see what you mean. For now, we have made the choice to compile static code to OCaml bytecode, whatever the compilation target is. While this enables the use of macros regardless of the target (e.g. it works in `ocamlopt`, the native compiler), it does make it necessary to compile a module to bytecode if you want to lift it. It's not a big deal with an adapted build system, but a distant future we might support native compilation of macros on some architectures.