2018-10-23 19:21:57 +02:00
|
|
|
open Std
|
|
|
|
|
2019-06-11 22:15:32 +02:00
|
|
|
let main
|
|
|
|
?no_rbp_undef:(no_rbp_undef=false)
|
|
|
|
?timers:(timers=false)
|
|
|
|
outfile
|
|
|
|
proj =
|
2019-03-27 16:35:54 +01:00
|
|
|
let pre_dwarf = proj
|
2019-06-11 22:15:32 +02:00
|
|
|
|> Simplest.of_proj no_rbp_undef timers
|
2019-03-27 16:35:54 +01:00
|
|
|
|> Simplest.clean_lost_track_subs in
|
2018-12-30 19:10:51 +01:00
|
|
|
Format.printf "%a" Frontend.pp_pre_dwarf_readelf pre_dwarf;
|
2019-03-18 14:20:53 +01:00
|
|
|
let pre_c_dwarf = PreCBinding.convert_pre_c pre_dwarf in
|
|
|
|
let fd = open_out_bin outfile in
|
2018-12-30 19:10:51 +01:00
|
|
|
Marshal.to_channel fd pre_c_dwarf []
|