summaryrefslogtreecommitdiff
path: root/asmrun/runtime.c
diff options
context:
space:
mode:
authorNo author <no_author@ocaml.org>1996-06-12 14:30:50 +0000
committerNo author <no_author@ocaml.org>1996-06-12 14:30:50 +0000
commit8840c0d2eb51b915c2ee9a0141ee15bacd2edaf9 (patch)
treee958cf7fcbd83fa76326751543fdb7b5db8c1f9d /asmrun/runtime.c
parent27f9eb0fedb8be059f7413efc9fbb8c6d7ee8f92 (diff)
downloadocaml-1.01.tar.gz
This commit was manufactured by cvs2svn to create tag 'ocaml101'.1.01
git-svn-id: http://caml.inria.fr/svn/ocaml/release/1.01@884 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'asmrun/runtime.c')
-rw-r--r--asmrun/runtime.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/asmrun/runtime.c b/asmrun/runtime.c
deleted file mode 100644
index b8061b46ca..0000000000
--- a/asmrun/runtime.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* A very simplified runtime system for the native code compiler */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include "mlvalues.h"
-
-extern int caml_start_program();
-
-value print_int(n)
- value n;
-{
- printf("%d", n>>1);
- return 1;
-}
-
-value print_string(s)
- value s;
-{
- printf("%s", (char *) s);
- return 1;
-}
-
-value print_char(c)
- value c;
-{
- printf("%c", c>>1);
- return 1;
-}
-
-static struct {
- value header;
- char data[16];
-} match_failure_id = {
- ((16 / sizeof(value)) << 11) + 0xFC,
- "Match_failure\0\0\2"
-};
-
-char * Match_failure = match_failure_id.data;
-
-int main(argc, argv)
- int argc;
- char ** argv;
-{
- init_heap();
- if (caml_start_program() != 0) {
- fprintf(stderr, "Uncaught exception\n");
- exit(2);
- }
- return 0;
-}
-