1

Is it possible to convert javascript code to machine code or pure native binary?

1
  • 2
    Anything is possible, but what would be the point? Much of the power of Javascript comes from it's nature as an interpreted language. Commented May 28, 2010 at 6:35

2 Answers 2

2

Not sure why anyone would want to do this, but there is an example here of how to generate a .NET executable file from JScript (not quite the same thing as JavaScript, I know):

http://www.phpied.com/make-your-javascript-a-windows-exe/

There is also Script2EXE here, which can convert JavaScript to a Win32 executable:

http://www.xuebrothers.net/sh/sh.htm

Sign up to request clarification or add additional context in comments.

Comments

1

Sure. Almost all modern JavaScript engines have a native code compiler. Google's V8 doesn't even have an interpreter, it only has a native code compiler.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.