Loading AI tools
来自维基百科,自由的百科全书
在早期的嵌入式應用中,工程師需要對C語言進行擴展以使系統能夠支持諸如定點數,多個不同的存儲器以及I/O等功能,但對於不同系統的擴展並不能通用,非標準化地擴展將會降低軟體的可移植性。因此在2008年,C語言標準委員會對C語言進行了標準化擴展,以解決上述問題[1]。擴展後的C語言在原標準C語言的基礎上新增了定點運算,地址空間命名,I/O硬體尋址等嵌入式系統常用功能。嵌入式C語言依舊沿襲了大部分標準C語言的語法和語義,例如:main函數、變量定義、數據類型聲明、條件判斷(if, switch case)、循環語句(while, for, do while)、數組、字符串、宏定義、位操作、結構體和共同體等[2] 。
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.