Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the bytcode produced by the compiler? #241

Open
ggutierrez opened this issue Oct 15, 2014 · 1 comment
Open

How to get the bytcode produced by the compiler? #241

ggutierrez opened this issue Oct 15, 2014 · 1 comment
Labels

Comments

@ggutierrez
Copy link
Member

Suppose I have a simple OZ program like:

declare
proc{CountAndPrint N}
  {Show N}
  if N==0 then skip
  else
    {CountAndPrint N-1}
  end
end

Is there a way to get the bytecode that is executed by the VM for this program?. Currently we are trying to find a solution for a mozart2 bug and we found ourselves in the bytecode execution loop. In order to have a clear understanding of what is going on I would like to get the bytecode of the procedure above.

It will be also very nice if some one can point us to documentation on the VM design.

@sjrd
Copy link
Member

sjrd commented Oct 15, 2014

In Emacs, menu Oz > Emulator Code > Buffer (or something similar).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants