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

Tuesday, May 24, 2011

javascript的delete

http://perfectionkills.com/understanding-delete/
在這篇文章很清楚的提到了javascript裡 delete operator的功用

c++的mutable

在看c++的時候
一直在想 mutable主要的用處 use-case 是什麼

這篇就講到了
http://stackoverflow.com/questions/105014/c-mutable-keyword

Wednesday, May 18, 2011

gamecih2

之前看到CIH在Android Market 上放了gamecih2
雖然沒去當天的H4
不過有看到當天留下的討論
http://hackingthursday.wikidot.com/2011-05-05


CIH 做了 GameCIH & GameCIH2 可以在玩游戲時鎖血量或是改金錢之類的 game master。可以在 Android Market 上下載,需要 root 才能正確執行。
基本原理 - Android App root 後,用 binary serach 去翻查 dalvik vm memory mapping. (只能說耐心超級高!) > 討論爭執主要是 key event , library call 跟 introspection/reflection 攔截是不是有更好的做法。以及 anti-ptrace 的可能性。主張 hprofile/ptrace/jvm debugging api 應該比硬幹攔 keycode, 攔 soft key 的screen/button event 乾淨。