找出哪个编译选项用于构建SQLite的方法 [英] Way to find out which Compilation Options were used to build SQLite
问题描述
在我的性能测试中,我发现了苹果在iPhone 3.0上提供的SQLite版本明显快于我自己编译的合并SQLite版本。所以我的问题是,有没有办法找出苹果使用哪些编译选项?
During my performance tests I found out the the SQLite version which Apple provides on the iPhone 3.0 is significantly faster then my self compiled amalgamation SQLite version. So my question is, is there a way to find out which compilation options Apple did use?
有一个测试应用程序打印出所有的默认设置pragam和sqlite3_config设置?
Is there a test app which prints out all the default set pragams and sqlite3_config setting?
推荐答案
看起来像pragma设置中唯一不同的是cache_size是默认2000,但在iPhone上是500 。
It looks like the only different in the pragma settings is the cache_size which is default 2000 but on the iPhone it is 500.
在某些系统上,可以使用以下命令读取编译器设置:
objdump --full-contents --section .GCC.command.line
On some systems it's possible to get read the compiler setting with this: objdump --full-contents --section .GCC.command.line
这篇关于找出哪个编译选项用于构建SQLite的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!