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

Calling external programs #509

Open
kengorab opened this issue Nov 25, 2024 · 0 comments
Open

Calling external programs #509

kengorab opened this issue Nov 25, 2024 · 0 comments

Comments

@kengorab
Copy link
Owner

The compiler currently is orchestrated via a small bash script, which passes the ssa output generated by the compiler binary into qbe, and then uses clang to compile the resulting assembly file (along with the libgc.a static lib) into an executable.

To move off of this shell script, Abra needs a way of calling external commands from within its runtime, and obtaining the response values as well as stdout/stderr. The API for this could be modeled after rust's std::process::Command, but it could also be streamlined since Abra is a more high-level language.

For now, since there's no notion of non-blocking IO in Abra, this would be a blocking operation, but that's fine. If I ever get around to implementing threads/fibers, I'll tackle non-blocking IO then.

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