zoukankan      html  css  js  c++  java
  • (源)V8 Engine 编译

    v8 engine编译

    V8 Engine 编译


    概述

    v8 Engine 用来编译javascript ,chrome 浏览器就是使用该引擎, v8引擎是独立模块,c++可以嵌入js脚本并执行

    windows下编译

    1.工具

    v8

    svn checkout http://v8.googlecode.com/svn/branches/bleeding_edge/ v8

    python

    svn co http://src.chromium.org/svn/trunk/tools/thirdparty/python26@89111 thirdparty/python26

    cygwin

    svn co http://src.chromium.org/svn/trunk/deps/thirdparty/cygwin@231940 thirdparty/cygwin

    icu

    svn co https://src.chromium.org/chrome/trunk/deps/thirdparty/icu46 thirdparty/icu

    gyp

    svn co http://gyp.googlecode.com/svn/trunk build/gyp

    2.编译步骤

    1. 把下载后的third_party拷贝到v8目录下,设置python的环境变量,方便直接调用python命令
    2. cd 到v8目录下,执行命令python buildgyp_v8 生成工程文件
    3. "c:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEdevenv.com" /build Release buildAll.sln

    3.调试步骤

    使用vs2010打开All.sln编译好的工程,可以进行调试,设置启动项为 sample/shell,运行shell print('hello world!');

    4.参考资料

  • 相关阅读:
    Path Sum 解答
    Binary Tree Paths 解答
    Populating Next Right Pointers in Each Node 解答
    Validate Binary Search Tree 解答
    First Missing Positive
    78 Subsets
    47.Permutations 1&2
    N-Queens 1&2
    Combination Sum_DFS
    38.Count and Say
  • 原文地址:https://www.cnblogs.com/fjchenqian/p/3674465.html
Copyright © 2011-2022 走看看