728x90 전체285 context switching animation(x86) - ucos ... 2005. 2. 28. Learn a new trick with the offsetof() macro http://www.embedded.com/shared/printableArticle.jhtml?articleID=18312031 Learn a new trick with the offsetof() macro By Nigel Jones, Courtesy of Embedded Systems Programming 3?11 2004 (15:00 $? URL: http://www.embedded.com/showArticle.jhtml?articleID=18312031 Click here for reader response to this article Almost never used, the offsetof() macro can actually be a helpful addition to your bag of t.. 2004. 12. 31. Why do a lot of #defines in the kernel use do { ... } while(0)? http://www.kernelnewbies.org/faq/There are a couple of reasons: (from Dave Miller) Empty statements give a warning from the compiler so this is why you see #define FOO do { } while(0). (from Dave Miller) It gives you a basic block in which to declare local variables. (from Ben Collins) It allows you to use more complex macros in conditional code. Imagine a macro of several lines of code like: #d.. 2004. 12. 18. ctags & cscope * edit ~/.vimrc --> set tags = tags,../tags,../../tags,../../../tags,../../../../tags * tags --> default tag file created by ctags $ ctags -R /* make tags */ $ find . -name *.[ch] > list $ cscope -i list /* make DB & invoke cscope */ $ cscope -d -p5 --> option d : do not update DB --> option p5 : show 5 path components ex모드 :tj 함수명 or 구조체명 (tj -> tags jump 약어) :cs find {질의종류} {심벌} ex) cs find s .. 2004. 6. 16. 이전 1 ··· 58 59 60 61 62 63 64 ··· 72 다음 728x90