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

Macro for non-interactive 'compiled mode' #298

Open
johnomotani opened this issue Oct 27, 2021 · 0 comments
Open

Macro for non-interactive 'compiled mode' #298

johnomotani opened this issue Oct 27, 2021 · 0 comments

Comments

@johnomotani
Copy link

Would it be possible to add macros to activate/deactivate 'compiled mode' in a similar way to the breakpoint macro @bp?

For example, if I have a program that has a lot of initialization, which takes a very long time in the interpreter, I think it would be nice to be able to do something like

function main()
    @enter_compiled_mode
    <A bunch of calls to expensive initialization functions>
    @exit_compiled_mode
    # Now we can run in the interpreter until we hit @bp
    <Code that does stuff...>
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant