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

Support basic AOT in BVM #82

Open
thosakwe opened this issue Apr 26, 2018 · 1 comment
Open

Support basic AOT in BVM #82

thosakwe opened this issue Apr 26, 2018 · 1 comment

Comments

@thosakwe
Copy link
Contributor

  1. Eager-analyze the module
  2. Eager-compile all functions
  3. Generate C++ file that:
    a. Creates a new BVM
    b. Creates a new BVMFunction with each function that has been compiled to bytecode.
    c. Calls execFunction with main
    d. Returns the correct exit code
  4. Compile this using the user's compiler (allow passing extra args)
  5. Spit out the native executable
  6. Profit
@thosakwe
Copy link
Contributor Author

This will require adding a little bit of abstraction to BVM, i.e letting it live without being tied directly to Dart. Not that difficult.

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