编译v8

http://blog.youkuaiyun.com/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.youkuaiyun.com/oneway102/article/details/6166716

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

http://blog.youkuaiyun.com/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.最后编不了真机!!!

 

 




 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值