diff options
| author | Alasdair Armstrong | 2019-02-27 19:24:05 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-02-27 19:44:50 +0000 |
| commit | b118c78ba85320ef2d6632bc2a6ee4f0907e5d23 (patch) | |
| tree | 73f0b8cbd226b07a9ed1071772e803eed7d899a1 /src/elf_loader.ml | |
| parent | 87140e97e3c1b2b1713a4458f8f5e622625c0683 (diff) | |
Tweaks to C compilation to make it more usable for embedding into other programs
Can now set a prefix for generated C functions with -c_prefix so
-c_prefix sail_ would give sail_execute_CGetPerm over
zexecute_CGetPerm. We still have to use our standard name-mangling
scheme to avoid possible collisions within the name.
Can build C that doesn't expect the standard runtime, which leaves
operations like read_memory, write_memory etc to be stubbed in by
another C program including the generated Sail. Things like
letbindings are still an issue because we rely on a very small runtime
to initialize global letbindings and similar.
-c_separate_execute splits the execute function apart in the generated C
Diffstat (limited to 'src/elf_loader.ml')
0 files changed, 0 insertions, 0 deletions
