Permalink
Browse files

Initial public version.

  • Loading branch information...
bvaugon committed Jul 24, 2012
1 parent 341d952 commit 8351ba25ab45eedad123e6578b8e1c4d7510d7db
Showing with 40,695 additions and 0 deletions.
  1. +29 −0 .gitignore
  2. +73 −0 INSTALL
  3. +506 −0 LICENSE-en
  4. +512 −0 LICENSE-fr
  5. +54 −0 Makefile
  6. +1 −0 RUNTIME_VERSION
  7. +1 −0 VERSION
  8. +109 −0 configure
  9. +38 −0 dist/distgen
  10. +626 −0 include/LICENSE
  11. +33 −0 include/ocamlcc-alloc.c
  12. +62 −0 include/ocamlcc-byterun.h
  13. +194 −0 include/ocamlcc-byterun/alloc.c
  14. +50 −0 include/ocamlcc-byterun/alloc.h
  15. +193 −0 include/ocamlcc-byterun/array.c
  16. +310 −0 include/ocamlcc-byterun/backtrace.c
  17. +33 −0 include/ocamlcc-byterun/backtrace.h
  18. +291 −0 include/ocamlcc-byterun/callback.c
  19. +49 −0 include/ocamlcc-byterun/callback.h
  20. +441 −0 include/ocamlcc-byterun/compact.c
  21. +27 −0 include/ocamlcc-byterun/compact.h
  22. +294 −0 include/ocamlcc-byterun/compare.c
  23. +21 −0 include/ocamlcc-byterun/compare.h
  24. +372 −0 include/ocamlcc-byterun/compatibility.h
  25. +104 −0 include/ocamlcc-byterun/custom.c
  26. +62 −0 include/ocamlcc-byterun/custom.h
  27. +440 −0 include/ocamlcc-byterun/debugger.c
  28. +113 −0 include/ocamlcc-byterun/debugger.h
  29. +62 −0 include/ocamlcc-byterun/exec.h
  30. +736 −0 include/ocamlcc-byterun/extern.c
  31. +161 −0 include/ocamlcc-byterun/fail.c
  32. +77 −0 include/ocamlcc-byterun/fail.h
  33. +252 −0 include/ocamlcc-byterun/finalise.c
  34. +29 −0 include/ocamlcc-byterun/finalise.h
  35. +164 −0 include/ocamlcc-byterun/fix_code.c
  36. +42 −0 include/ocamlcc-byterun/fix_code.h
  37. +431 −0 include/ocamlcc-byterun/flexdll.c
  38. +36 −0 include/ocamlcc-byterun/flexdll.h
  39. +481 −0 include/ocamlcc-byterun/floats.c
  40. +553 −0 include/ocamlcc-byterun/freelist.c
  41. +36 −0 include/ocamlcc-byterun/freelist.h
  42. +58 −0 include/ocamlcc-byterun/gc.h
  43. +511 −0 include/ocamlcc-byterun/gc_ctrl.c
  44. +42 −0 include/ocamlcc-byterun/gc_ctrl.h
  45. +284 −0 include/ocamlcc-byterun/globroots.c
  46. +27 −0 include/ocamlcc-byterun/globroots.h
  47. +157 −0 include/ocamlcc-byterun/hash.c
  48. +63 −0 include/ocamlcc-byterun/instruct.h
  49. +273 −0 include/ocamlcc-byterun/int64_emul.h
  50. +107 −0 include/ocamlcc-byterun/int64_format.h
  51. +53 −0 include/ocamlcc-byterun/int64_native.h
  52. +729 −0 include/ocamlcc-byterun/intern.c
  53. +162 −0 include/ocamlcc-byterun/intext.h
  54. +774 −0 include/ocamlcc-byterun/ints.c
  55. +799 −0 include/ocamlcc-byterun/io.c
  56. +126 −0 include/ocamlcc-byterun/io.h
  57. +37 −0 include/ocamlcc-byterun/jumptbl.h
  58. +256 −0 include/ocamlcc-byterun/lexing.c
  59. +63 −0 include/ocamlcc-byterun/main.c
  60. +509 −0 include/ocamlcc-byterun/major_gc.c
  61. +62 −0 include/ocamlcc-byterun/major_gc.h
  62. +311 −0 include/ocamlcc-byterun/md5.c
  63. +41 −0 include/ocamlcc-byterun/md5.h
  64. +549 −0 include/ocamlcc-byterun/memory.c
  65. +459 −0 include/ocamlcc-byterun/memory.h
  66. +321 −0 include/ocamlcc-byterun/minor_gc.c
  67. +58 −0 include/ocamlcc-byterun/minor_gc.h
  68. +125 −0 include/ocamlcc-byterun/misc.c
  69. +138 −0 include/ocamlcc-byterun/misc.h
  70. +295 −0 include/ocamlcc-byterun/mlvalues.h
  71. +252 −0 include/ocamlcc-byterun/obj.c
  72. +44 −0 include/ocamlcc-byterun/opnames.h
  73. +71 −0 include/ocamlcc-byterun/osdeps.h
  74. +318 −0 include/ocamlcc-byterun/parsing.c
  75. +126 −0 include/ocamlcc-byterun/printexc.c
  76. +27 −0 include/ocamlcc-byterun/printexc.h
  77. +88 −0 include/ocamlcc-byterun/reverse.h
  78. +103 −0 include/ocamlcc-byterun/roots.c
  79. +38 −0 include/ocamlcc-byterun/roots.h
  80. +307 −0 include/ocamlcc-byterun/signals.c
  81. +51 −0 include/ocamlcc-byterun/signals.h
  82. +101 −0 include/ocamlcc-byterun/signals_byt.c
  83. +62 −0 include/ocamlcc-byterun/signals_machdep.h
  84. +115 −0 include/ocamlcc-byterun/stacks.c
  85. +43 −0 include/ocamlcc-byterun/stacks.h
  86. +622 −0 include/ocamlcc-byterun/startup.c
  87. +41 −0 include/ocamlcc-byterun/startup.h
  88. +157 −0 include/ocamlcc-byterun/str.c
  89. +351 −0 include/ocamlcc-byterun/sys.c
  90. +30 −0 include/ocamlcc-byterun/sys.h
  91. +130 −0 include/ocamlcc-byterun/terminfo.c
  92. +28 −0 include/ocamlcc-byterun/ui.h
  93. +330 −0 include/ocamlcc-byterun/unix.c
  94. +1 −0 include/ocamlcc-byterun/version.h
  95. +193 −0 include/ocamlcc-byterun/weak.c
  96. +26 −0 include/ocamlcc-byterun/weak.h
  97. +546 −0 include/ocamlcc-byterun/win32.c
  98. +130 −0 include/ocamlcc-exceptions.c
  99. +431 −0 include/ocamlcc-instrs.c
  100. +42 −0 include/ocamlcc-main.c
  101. +326 −0 include/ocamlcc-otherlibs.h
  102. +55 −0 include/ocamlcc-signals.c
  103. +44 −0 include/ocamlcc-unimpl.c
  104. +65 −0 include/ocamlcc-windows.c
  105. +26 −0 include/ocamlcc.h
  106. +70 −0 man/ocamlcc.1
  107. +34 −0 src/Makefile
  108. +385 −0 src/codegen/applygen.ml
  109. +140 −0 src/codegen/ccode.mli
  110. +345 −0 src/codegen/ccodepp.ml
  111. +772 −0 src/codegen/codegen.ml
  112. +212 −0 src/frontend/code.ml
  113. +61 −0 src/frontend/data.ml
  114. +35 −0 src/frontend/dbug.ml
  115. +59 −0 src/frontend/index.ml
  116. +327 −0 src/frontend/instr.ml
  117. +29 −0 src/frontend/loader.ml
  118. +356 −0 src/frontend/prim.ml
  119. +179 −0 src/ocamlcc.ml
  120. +277 −0 src/optimizer/block.ml
  121. +67 −0 src/optimizer/factfun.ml
  122. +359 −0 src/optimizer/rmclsrs.ml
  123. +371 −0 src/optimizer/static.ml
  124. +199 −0 src/optimizer/stkmap.ml
  125. +729 −0 src/optimizer/xconst.ml
  126. +102 −0 src/tools/options.ml
  127. +362 −0 src/tools/printer.ml
  128. +171 −0 src/tools/stat.ml
  129. +88 −0 src/tools/stk.ml
  130. +28 −0 src/tools/tools.ml
  131. +209 −0 src/tools/types.mli
  132. +69 −0 tests/Makefile
  133. +9,483 −0 tests/bigsrc_ml
  134. +17 −0 tests/bug.ml
  135. +25 −0 tests/extexn.ml
  136. +25 −0 tests/fact.ml
  137. +23 −0 tests/fibo.ml
  138. +72 −0 tests/flocon.ml
  139. +41 −0 tests/funs.ml
  140. +13 −0 tests/hw.ml
  141. +39 −0 tests/levenshtein.ml
  142. +13 −0 tests/loop.ml
  143. +3,238 −0 tests/nucleic.ml
  144. +714 −0 tests/okb.ml
  145. +96 −0 tests/osolilet.ml
  146. +13 −0 tests/printfhw.ml
  147. +22 −0 tests/takc.ml
  148. +19 −0 tests/termtrap.ml
View
@@ -0,0 +1,29 @@
+bin/
+etc/
+src/_build/
+src/config.ml
+dist/*.tar.bz2
+tests/*.byte
+tests/*.cmi
+tests/*.cmo
+tests/*.cmx
+tests/*.native
+tests/*.o
+tests/*.c
+tests/extexn
+tests/fact
+tests/fibo
+tests/funs
+tests/hw
+tests/levenshtein
+tests/loop
+tests/nucleic
+tests/okb
+tests/osolilet
+tests/printfhw
+tests/takc
+tests/termtrap
+tests/ocamlc
+tests/flocon
+tests/bug
+trash/
View
73 INSTALL
@@ -0,0 +1,73 @@
+ Installing OCamlCC on a Unix machine
+ ------------------------------------
+
+PREREQUISITES
+
+* The OCaml standard distribution
+
+
+INSTALLATION INSTRUCTIONS
+
+1- Configure the system. From the top directory, do:
+
+ ./configure
+
+This generates the configuration files "Makefile.conf", "config.ml"
+and "config.h" in the ./etc/ subdirectory.
+
+The "configure" script accepts the following options:
+
+-bindir <dir> (default: /usr/local/bin)
+ Directory where the binaries will be installed.
+
+-includedir <dir> (default: /usr/local/include)
+ Directory where the C headers will be installed.
+
+-mandir <dir> (default: /usr/local/man/man1)
+ Directory where the manual pages will be installed.
+
+-prefix <dir> (default: /usr/local)
+ Set bindir, includedir and mandir to <dir>/bin, <dir>/include
+ and <dir>/man/man1 respectively.
+
+Examples:
+
+ Standard installation in /usr/{bin,include,man} instead of /usr/local:
+ ./configure -prefix /usr
+
+ Installation in /usr, man pages in section "l":
+ ./configure -bindir /usr/bin -includedir /usr/include -mandir /usr/man/manl
+
+
+2- From the top directory, do:
+
+ make
+
+This builds ocamlcc in the local directory ./bin/.
+
+
+3- You can now install OCamlCC. This will create the following command
+(in the binary directory selected during autoconfiguration):
+
+ ocamlcc an Objective Caml to C code compiler
+
+From the top directory, become superuser and do:
+
+ umask 022 # make sure to give read & execute permission to all
+ make install
+
+4- Installation is complete. Time to clean up. From the toplevel
+directory, do:
+
+ make clean
+
+
+UNINSTALLATION INSTRUCTIONS
+
+1- If configuration files (./etc/Makefile.conf, ./etc/config.ml,
+./etc/config.h) have been lost, run again ./configure from the top
+directory with the same options as at step 1 of installation.
+
+2- From the top directory, become superuser and do:
+
+ make uninstall
Oops, something went wrong.

0 comments on commit 8351ba2

Please sign in to comment.