This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1 @@
(executable (name foo))

View file

@ -0,0 +1,4 @@
((addr2loc ())
(name2id ())
(functions ())
(execounts ()) (crcs ((Dune__exe__Foo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa))))

View file

@ -0,0 +1,17 @@
print_string "<root>"
;;
let sep = Filename.dir_sep in
assert ((String.length sep) = 1);
let l = Sys.executable_name
|> String.split_on_char sep.[0] in
(* print the last 4 elements if exist *)
let len = (List.length l) in
List.iteri
(fun i dir ->
if ((len - i) < 5) then Printf.printf "/%s" dir)
l
;;
print_endline ": hello from fdo!"
;;