http://gcc.gnu.org/onlinedocs/gccint.pdf
http://www.cse.iitb.ac.in/grc/gcc-workshop-09/downloads/gccw09-gimple-handout.pdf
Wednesday, October 5, 2011
Tuesday, October 4, 2011
c++的prefix ++ 跟postfix ++
在stackoverflow看到了pre-increment 跟post-increment的問題
http://stackoverflow.com/questions/7397740/post-increment-operator
才發現c++這跟c是不一樣的
prefix increment是return lvalue
postfix inc 是return rvalue
另外還有古老的com.std.c++的討論
http://groups.google.com/group/comp.std.c++/browse_thread/thread/7804d1fdf2f05a1c
回文裡面可是有幾位大師呢
http://stackoverflow.com/questions/7397740/post-increment-operator
才發現c++這跟c是不一樣的
prefix increment是return lvalue
postfix inc 是return rvalue
另外還有古老的com.std.c++的討論
http://groups.google.com/group/comp.std.c++/browse_thread/thread/7804d1fdf2f05a1c
回文裡面可是有幾位大師呢
Monday, October 3, 2011
c puzzles
loopy c puzzle: http://blog.susam.in/2011/10/solutions-to-loopy-c-puzzle.html
overwrite stack : http://blog.susam.in/2010/07/stack-overwriting-function.html
xor swap: http://adrianhuang.blogspot.com/2011/08/c.html
overwrite stack : http://blog.susam.in/2010/07/stack-overwriting-function.html
xor swap: http://adrianhuang.blogspot.com/2011/08/c.html
Thursday, September 29, 2011
Monday, September 26, 2011
Friday, September 16, 2011
gcc trampolines
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
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
Subscribe to:
Posts (Atom)