Skip to content

Commit dcd7489

Browse files
committed
fix overflows with some rawsh
1 parent af28ae0 commit dcd7489

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$ gcc -fPIC -Wall -I`ocamlc -where` -L`ocamlc -where` -ltermcap -lm -ldl \
2+
-o finalbc.native main.c embed_out.o -lcamlrun
3+
$ ./finalbc.native
4+
Before calling OCaml
5+
hello embedded world 1
6+
hello embedded world 2
7+
After calling OCaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$ ocamlopt -output-obj -o embed_native.o embed_me1.ml embed_me2.ml
2+
$ gcc -Wall -I `ocamlc -where` -o final.native embed_native.o main.c \
3+
-L `ocamlc -where` -lasmrun -ltermcap -lm -ldl
4+
$ ./final.native
5+
Before calling OCaml
6+
hello embedded world 1
7+
hello embedded world 2
8+
After calling OCaml
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)