-
Notifications
You must be signed in to change notification settings - Fork 127
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
Compiling JavaScript to C source code #46
Comments
You can directly compile JS to c/c++ with NectarJS |
Does the documentation explain how to compile JavaScript to C or C++? |
Not yet, you have to use |
Where is the core/nativejs folder?
|
There is no more core/nativejs, did you update NectarJS ? |
I recently installed it. I was looking for a transpiler to convert javascript to c++. I'm guessing that's no longer a supported feature then? |
Compiling to c++ is one of the main feature, so it's supported Did you install it with npm ?
|
Hi @adrien-thierry, I have installed NectarJS globally using
What is the correct way to generate C/C++ output from NectarJS? Many thanks! |
Hi @DuncanMacWeb ! Thank you for your interest in NectarJS, to generate c++, use the To generate the code in a specific path, use --tmp with a path : |
To just compile the app, use |
Got it, thanks! |
Since NectarJS is able to compile JavaScript into WebAssembly, it may be possible to compile JavaScript into C source code using a compiler like wasmdec. Does NectarJS have this feature yet?
The text was updated successfully, but these errors were encountered: