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

Make HL Bytecode as executable (like nekotools boot) #66

Closed
Yanrishatum opened this issue Jun 11, 2017 · 5 comments
Closed

Make HL Bytecode as executable (like nekotools boot) #66

Yanrishatum opened this issue Jun 11, 2017 · 5 comments

Comments

@Yanrishatum
Copy link
Contributor

While HL does compiles to C executable, it's currently not possible to simply make .hl file as executable file which depends on pre-installed HL in the system.
I request feature of making executable for .hl bytecode which should run the installed HashLink.
Neko already have such feature via nekotools boot utility, which were pretty convenient when executable file output were required but compilation time weren't as long as for C++.

@andyli
Copy link
Member

andyli commented Jun 11, 2017

The existing nekotools boot ... implementation is problematic... See HaxeFoundation/neko#130
Unless we have a way to generate a "proper" binary on all major platform, using a c compiler is the right way to go.

@ncannasse
Copy link
Member

ncannasse commented Jun 11, 2017 via email

@ppenzin
Copy link

ppenzin commented Jun 12, 2017

Would it be, in theory, possible to produce object files from HL bytecode?

LLVM has support for garbage collection and hashlink might be a good target to translate to LLVM.

@ncannasse
Copy link
Member

@ppenzin you can already generate C files from HL and compile them to native using any C compiler

@ncannasse
Copy link
Member

Closing this, as I have no time for it.

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

4 participants