startup.c : allocate_caml_globals, ctx->caml_globals
optcompile:process_file -> link -> startup (build caml_globals from units_tolink). In this commit, ocamlopt postpones Ccomp.command 'as -o simpl.o /tmp/camlasm....s' in order to exec sed replacement on the asm file /tmp/camlasm..s. Run ocamlopt to see the sed modification command
index_file option was introduced and works well. When compile a ml file without -c option ocamlopt links cmx files from stdlib_r but those cmx files were not reentrant in terms of caml_globals and camlPervasives for example. index file specifies the relative position of the blocks in caml_globals. By providing index file, ocamlopt with -c replace accesses to caml_globals with ctx->caml_globals[i][j]