The first six probes each proved a piece. merged.sh puts them together: the program's @main is renamed out of the way, a C main takes the main thread and runs it there, caml_startup happens on a thread beside it, and clang links the lot -- the emitted program object, flan_rt.c, flan_dev.c, flan_agent.c and the whole compiler as one -output-complete-obj. It runs, and the compiler inside it compiles the very source the program was built from. Nothing is wired up. The two halves share an address space and do not speak. That is the point: the question was whether they can, not what they would say. sig.sh and symbols.sh answer the two questions the first pass got wrong or skipped. The SIGSEGV reading in harness5.c was taken at the wrong moment -- OCaml 5 starts domains after caml_startup returns, so the disposition had to be read from inside the runtime, and against a plain ocamlopt executable as a control. symbols.sh is the hazard nobody looks for until the link fails: four .c files that are compiled into two different processes today, and the OCaml runtime, all landing in one link.
15 lines
172 B
Plaintext
15 lines
172 B
Plaintext
# Spike artifacts. run.sh rebuilds all of them from the sources beside it.
|
|
*.o
|
|
*.cmi
|
|
*.cmx
|
|
baseline
|
|
spike1
|
|
spike2
|
|
spike3
|
|
spike4
|
|
spike5
|
|
spike6
|
|
spike5b
|
|
spike5b_std
|
|
stubs5b.o
|