I have simple ocaml file test.ml
1 + 2;;
I compiled it. can i see assembly output of this code? Maybe ocaml packet has any tools for this?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can: see below. Everything that remains from your code is
movl $7, %eax(7 is OCaml’s representation for 3, which is the result of 1+2).