GCC使用__attribute__關鍵字

GCC使用__attribute__關鍵字來描述函數,變量和數據類型的屬性,用於編譯器對源代碼的優化。 描述函數屬性的幾個重要的關鍵字: void noreturnfun() __attribute__((noreturn));//函數不會返回。 void centon() __attribute__((alias("__centon")));//設置函數別名,函數是__cencon,別名是cen
相關文章
相關標籤/搜索