Created
April 5, 2021 12:10
-
-
Save Kakadu/6b4d4b71eb5aaf2a44c66749f671481e to your computer and use it in GitHub Desktop.
ocaml 32bit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ /tmp echo "" > a.ml && ocamlfind opt -output-obj a.ml -o camlcode.o | |
➜ /tmp gcc -m32 -o myprog camlcode.o -L`ocamlc -where` -lasmrun -ldl -lm | |
➜ /tmp which ocamlc | |
/home/kakadu/.opam/4.11.2+32bit/bin/ocamlc | |
➜ /tmp file myprog | |
myprog: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=e9f3726edcbf6201667f87a20fb45700e1219763, for GNU/Linux 3.2.0, with debug_info, not stripped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment