编译v8

来源:互联网 发布:java设计模式应用场景 编辑:程序博客网 时间:2024/04/29 22:18

http://blog.csdn.net/leeeryan/article/details/5905975

http://www.360doc.com/content/11/0215/11/4996385_93176679.shtml

http://kb.cnblogs.com/a/1670016

http://zhbtdy.blog.163.com/blog/static/29035121201010735743634/

http://blog.csdn.net/oneway102/article/details/6166716

http://www.cocoachina.com/iphonedev/sdk/2011/0518/2866.html

http://blog.csdn.net/leeeryan/article/details/6068700

http://www.cppblog.com/corelito/archive/2008/10/18/64301.html

http://code.google.com/apis/v8/build.html

http://blog.chinaunix.net/space.php?uid=8272118&do=blog&id=2033361

https://github.com/fractaloop/libv8

http://code.google.com/p/v8/wiki/CrossCompilingForARM

 

webkit是一个开源项目,苹果公司之前用的时候,为它加入了javacriptcore引擎,主要是苹果公司在用,后来google开发chrome时觉得这个引擎有点慢,其丹麦的一个工程师开发了v8引擎,它使用了不同以往的数据处理方式,在执行大的javascript代码时效率会很高。

 

Jscript(ie),SpiderMonkey(firefox),JavaScriptCore(safari)

 

在mac上编译v8:

1.在http://code.google.com/p/v8/上checkout v8:

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

2.在http://www.scons.org/download.php下载scons-2.1.0.tar.gz,解压。

   Note: If you are developing on a Mac andhave Apple's Xcode installed you will already have Subversion version1.4.4, Python 2.5, and the Gnu Compiler (GCC) 4.x.x. This means you onlyneed to install SCons.

3.install scons on Mac OS X,用root权限,可能没有启用root权限,参考另一篇文章

# cd scons-1.2.0

# python setup.py install

4.To check correct installation and version, start a shell on Linuxor Mac and a command prompt on Windows, then execute the followingcommands to print the version number of each of the tools.

  $ svn --version
  $ python -V
  $ scons --version

5.编译v8

$ cd v8

$ scons mode=debug library=static snapshot=on

$ scons mode=release library=static snapshot=on

 

6.最后编不了真机!!!

 

 




 

原创粉丝点击