Skip to content

Hello, can someone explain what does "C and JavaScript backends" mean in the Key features of V? #20746

Discussion options

You must be logged in to vote

By default, the V compiler outputs C code, then calls the C compiler for you to create the final binary, shared library, or whatever you told it to create. It then deletes the C code to clean up disk space.

You can also tell V to output the C code then stop. This is useful if you want to examine the C code itself, port to systems V doesn't currently support, etc.

V can also output JavaScript instead of C, which can be used with node, run in the browser, etc.

Last, there are other backends, such as the native backend (V compiles directly to a native executable, with no other compilers involved), WASM (Web Assembly), a Go backend, and someone was working on a FreePascal backend. None of the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants