2008年2月24日 星期日
2008年2月19日 星期二
Lazarus pascal 編譯後.exe 檔案太大問題.
Lazarus pascal 編譯後.exe 檔案太大問題.
在MS-DOS command下
strip --strip-all project1.exe
這樣就可以進行減肥.
參考: http://wiki.lazarus.freepascal.org/File_size_and_smartlinking
2008年2月12日 星期二
在C裡面是沒有 bool.
在C裡面是沒有 bool.
There is no bool keyword in C. Instead booleans in C are the same as integers with a value of 0 for false or 1 for true. Thus the following is an infinite loop:
while(1) {
; /* do nothing */
}
Reference:
http://people.cs.uchicago.edu/~iancooke/osstuff/ccc.html
2008年2月4日 星期一
訂閱:
文章 (Atom)