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.参考资料

  • 相关阅读:
    Python学习札记(十五) 高级特性1 切片
    LeetCode Longest Substring Without Repeating Characters
    Python学习札记(十四) Function4 递归函数 & Hanoi Tower
    single number和变体
    tusen 刷题
    实验室网站
    leetcode 76. Minimum Window Substring
    leetcode 4. Median of Two Sorted Arrays
    leetcode 200. Number of Islands 、694 Number of Distinct Islands 、695. Max Area of Island 、130. Surrounded Regions 、434. Number of Islands II(lintcode) 并查集 、178. Graph Valid Tree(lintcode)
    刷题注意事项
  • 原文地址:https://www.cnblogs.com/fjchenqian/p/3674465.html
Copyright © 2011-2022 走看看