Are g++/gcc capable of producing a single executable from node + arbitrary JavaScript files? #9
Replies: 2 comments 1 reply
-
Yes g++ can be used to compile node but we want to avoid recompilation (boxednode recompiles node) for building the single executable because it takes a significantly high amount of time. |
Beta Was this translation helpful? Give feedback.
-
My thought was not to recompile We can concatenate the files in modern browsers using Something like
where
or
|
Beta Was this translation helpful? Give feedback.
-
My own sense of a single executable Node.js application is user visits a Node.js controlled site, brings their own JavaScript code, uploads the code and the Web site produces a single executable consisting of the
node
executable merged with the arbitrary code the user uplaods.This is what got me to thinking about utilizing
g++
to vreate a single exacutable Node.js application https://stackoverflow.com/a/12046789.Are
g++
andgcc
capable of producing such a re-compiled executable?Beta Was this translation helpful? Give feedback.
All reactions