gcc manual:
http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
http://gcc.gnu.org/onlinedocs/gccint/Trampolines.html
blog:
http://chenyufei.info/blog/2011-02-28/wrap-c-function-closure-gcc-nested-function/
http://blog.linux.org.tw/~jserv/archives/2010/07/gcc_nested_func.html
http://www.hokstad.com/how-to-implement-closures.html
http://www.airs.com/blog/archives/518
Friday, September 16, 2011
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順序調換一下
http://groups.google.com/group/android-porting/browse_thread/thread/5e1464ad78aaab5f
如果code在constructor就掛掉的話
在trace dump裡是看不出結果的
得要把notify gdb跟call cstor順序調換一下
Friday, August 19, 2011
books for c++ stl
Generic Programming and the STL
http://www.amazon.com/Generic-Programming-STL-Extending-Standard/dp/0201309564Effective STL
http://www.amazon.com/dp/0201749629/?tag=stackoverfl08-20The C++ Standard Template Library
http://www.amazon.com/C-Standard-Template-Library/dp/0134376331
The C++ Standard Library: A Tutorial and Reference
2011下半年的目標
話說這應該是今年年初就請寫的
1. 日本語 中級
2. C++ Template(Modern C++ Design), C++ STL
3. Python
不知道放不放得進去javascript....
1. 日本語 中級
2. C++ Template(Modern C++ Design), C++ STL
3. Python
不知道放不放得進去javascript....
Friday, August 12, 2011
コ ン ピ ュ ー タ 科 学
東大
entrance exam
http://www.i.u-tokyo.ac.jp/edu/entra/pdf/H24master.pdf
http://www.i.u-tokyo.ac.jp/edu/entra/pdf/H24master-e.pdf
http://www.i.u-tokyo.ac.jp/edu/course/cs/pdf/H24computer.pdf
http://www.i.u-tokyo.ac.jp/edu/course/cs/pdf/H24computer_e.pdf
lab : http://www.i.u-tokyo.ac.jp/edu/course/cs/members_e.shtml
東工大
cs lab : http://www.cs.titech.ac.jp/labs-e.html
math and computing science lab :
http://www.is.titech.ac.jp/is-wiki/?Research%20Groups%20and%20Staffs
東北大
http://www.is.tohoku.ac.jp/_eng/introduction/organization.html#CMS
京都大
http://www.i.kyoto-u.ac.jp/en/index.html
大阪大
http://www.ist.osaka-u.ac.jp/english/cs/index.html
entrance exam
http://www.i.u-tokyo.ac.jp/edu/entra/pdf/H24master.pdf
http://www.i.u-tokyo.ac.jp/edu/entra/pdf/H24master-e.pdf
http://www.i.u-tokyo.ac.jp/edu/course/cs/pdf/H24computer.pdf
http://www.i.u-tokyo.ac.jp/edu/course/cs/pdf/H24computer_e.pdf
lab : http://www.i.u-tokyo.ac.jp/edu/course/cs/members_e.shtml
東工大
cs lab : http://www.cs.titech.ac.jp/labs-e.html
math and computing science lab :
http://www.is.titech.ac.jp/is-wiki/?Research%20Groups%20and%20Staffs
東北大
http://www.is.tohoku.ac.jp/_eng/introduction/organization.html#CMS
京都大
http://www.i.kyoto-u.ac.jp/en/index.html
大阪大
http://www.ist.osaka-u.ac.jp/english/cs/index.html
Tuesday, August 9, 2011
android renderscript
官方的介紹
http://graphics-geek.blogspot.com/2011/06/android-rendering-options.html
http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
http://android-developers.blogspot.com/2011/03/renderscript.html
google io
http://www.google.com/events/io/2011/sessions/honeycomb-highlights.html
早期的renderscript是在eclair時的 libacc
http://jserv.blogspot.com/2009/12/libacc-android-20-c-compiler.html
不過最特別的是renderscript號稱 portable 跟 performance
不過心裡還是抱著很大的問號就是了
另外也有些地方不太了解
C++ on the other hand was very desirable but ran into issues with portability. The advanced C++ features are very difficult to run on non-cpu hardware
這裡的c++ advance feature 是什麼??
For example, some compute hardware can support pointers and recursion while others cannot
什麼hardware會沒support pointer 跟recusrion呢??
http://graphics-geek.blogspot.com/2011/06/android-rendering-options.html
http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
http://android-developers.blogspot.com/2011/03/renderscript.html
google io
http://www.google.com/events/io/2011/sessions/honeycomb-highlights.html
早期的renderscript是在eclair時的 libacc
http://jserv.blogspot.com/2009/12/libacc-android-20-c-compiler.html
不過最特別的是renderscript號稱 portable 跟 performance
不過心裡還是抱著很大的問號就是了
另外也有些地方不太了解
C++ on the other hand was very desirable but ran into issues with portability. The advanced C++ features are very difficult to run on non-cpu hardware
這裡的c++ advance feature 是什麼??
For example, some compute hardware can support pointers and recursion while others cannot
什麼hardware會沒support pointer 跟recusrion呢??
Friday, July 29, 2011
custom android build.xml
之前要改android的build.xml時
通常先在我自己的build.xml最後那 改 setup import="false"
然後再去把SDK裡的template copy出來
加到build.xml的後面
不過今天發現
可以不用那麼麻煩
import="false"也不用加
只要先把template裡面的你想要改的target copy出來
貼到你的build.xml上
再自己改想要改的東西 就可以了
inspired by class loading example http://code.google.com/p/android-custom-class-loading-sample/
通常先在我自己的build.xml最後那 改 setup import="false"
然後再去把SDK裡的template copy出來
加到build.xml的後面
不過今天發現
可以不用那麼麻煩
import="false"也不用加
只要先把template裡面的你想要改的target copy出來
貼到你的build.xml上
再自己改想要改的東西 就可以了
inspired by class loading example http://code.google.com/p/android-custom-class-loading-sample/
Subscribe to:
Posts (Atom)