Skip to content

Commit

Permalink
fix overflows with some rawsh
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Aug 19, 2013
1 parent af28ae0 commit dcd7489
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/back-end-embed/build_embed_binary.rawsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ gcc -fPIC -Wall -I`ocamlc -where` -L`ocamlc -where` -ltermcap -lm -ldl \
-o finalbc.native main.c embed_out.o -lcamlrun
$ ./finalbc.native
Before calling OCaml
hello embedded world 1
hello embedded world 2
After calling OCaml
8 changes: 8 additions & 0 deletions code/back-end-embed/build_embed_native.rawsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$ ocamlopt -output-obj -o embed_native.o embed_me1.ml embed_me2.ml
$ gcc -Wall -I `ocamlc -where` -o final.native embed_native.o main.c \
-L `ocamlc -where` -lasmrun -ltermcap -lm -ldl
$ ./final.native
Before calling OCaml
hello embedded world 1
hello embedded world 2
After calling OCaml
File renamed without changes.
File renamed without changes.

0 comments on commit dcd7489

Please sign in to comment.