V8 JavaScript Engine getting started 1-compiling V8

Source: Internet
Author: User
Introduction

V8 JavaScript Engine is Google Chrome's JavaScript Engine. Unlike the interpretation and execution principles of other Javascript Engines, it directly compiles Javascript into binary code and then executes it! And V8 JavaScript Engine is open source: http://code.google.com/apis/v8,
V8 also has an attractive point in that it can be compiled into a static/dynamic library, and then you can use it in your own C ++ program. This article describes how to compile V8 into a dynamic library.
For more information, see: http://code.google.com/apis/v8/build.html

Preparations

You need to download and install the following software:

  • Subversion 1.4 or higher-see http://subversion.tigris.org/links.html#clients
  • Python 2.4 or higher-see http://www.python.org
  • Scons 1.0.0 or higher-see http://www.scons.org
Download source code

SVN: http://v8.googlecode.com/svn/trunk/

Compile

You can use v8.sln compilation under the tools/visual_studio directory. However, we recommend that you use the CMD command to make it easier!


Use the above command to produce a dynamic library named v8_g.dll of the debug version in the v8_source directory!
For more detailed commands, refer to here: http://code.google.com/apis/v8/build.html

Now the dynamic library is created successfully. You can also choose to generate a static library!

If you want to compile through vs, you can refer to this: http://blog.csdn.net/holemole/archive/2009/05/08/4157257.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.