您的位置:首页 > 移动开发 > Android开发

Google Android改了什么 zlib

2015-11-05 16:52 1686 查看
base on
zlib 1.2.8
, no bugfix

Add
Android.mk
, delete
Makefile


setup
LOCAL_ARM_MODE := arm


Android ARM指令模式有32位和16位两种,16位为thumb指令集,编译生成代码占用空间小,效率高,所以默认使用thumb模式.

测试证明: zlib在ARM 32位指令集模式下速度快1.17倍.

measurements show that the ARM version of ZLib is about x1.17 faster than the thumb one...


setup
LOCAL_CFLAGS += -O3 -DUSE_MMAP


USE_MMAP
宏仅在
test/minigzip.c
使用.

setup
LOCAL_LDFLAGS_arm := -Wl,--hash-style=both


其他bug引起.

This is to work around b/24465209. Remove after root cause is fixed
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: