dwarf-synthesis/DwarfSynth/Main.ml
Théophile Bastian 8fa2bc5952 ml_dwarf_write: write to a separate file
Don't try to write into the ELF file directly, use objcopy.

Updated README
2019-03-18 14:20:53 +01:00

8 lines
272 B
OCaml

open Std
let main outfile proj =
let pre_dwarf = Simplest.of_proj proj in
Format.printf "%a" Frontend.pp_pre_dwarf_readelf pre_dwarf;
let pre_c_dwarf = PreCBinding.convert_pre_c pre_dwarf in
let fd = open_out_bin outfile in
Marshal.to_channel fd pre_c_dwarf []