Showing posts with label android_ndk. Show all posts
Showing posts with label android_ndk. Show all posts

Friday, August 26, 2011

ndk crash in constructor

在這篇post有講到
http://groups.google.com/group/android-porting/browse_thread/thread/5e1464ad78aaab5f

如果code在constructor就掛掉的話
在trace dump裡是看不出結果的

得要把notify gdb跟call cstor順序調換一下


Wednesday, May 25, 2011

android ndkr5 -no-pic

在ndk groups這篇
http://goo.gl/zOwpr
討論到了在ndkr5的時候
This does not affect anyone using the NDK build system, only people who
want to use the toolchain in standalone mode. 

default是給 -fpic  所以造成了10%~25%的performance loss

而且在講解原因的時候又是很經典的句子
The reason for this is historical, and the C compiler
team has agreed that using  -fpic by default for this config makes sense. 


而最後在cflags加了-fno-pic後也真的提高了performance