https://embedded2016.hackpad.com/How-C-programs-work-8ZyIWdATZ6O
歷史
字串
strlen preprocessor:使用 sizeof -1
(A=B) 及 ((A=B))
efficient coding
重要性:對 resouce contrained systems 或 real-time applications,省電
compiler optimizations?
== -1 跟 <0
「0 <= A && A < MAX」及「(unsigned int) A < MAX」
efficient 'C' programming
Mike Katz, Encourage Efficient Coding Without Affecting Coding.
Google book review: Phillip A. Laplante, Real-Time Systems Design and Analysis, Wiley Interscience.
Paul Hsieh, Programming Optimization, 2007
利用程式碼註解來達成 #if #else #endif 的效果
Back to the Basics - Practical Embedded Coding Tips:
整數的 ANSI C99 標準名稱 -- int16_t, int32_t 等。
MACRO
do while(0) 跟 inline
https://embedded2016.hackpad.com/2016-1tD12YK8Ygi