1 .. SPDX-License-Identifier: GPL-2.0 2 3 .. include:: ../disclaimer-zh_TW.rst 4 5 :Original: :ref:`Documentation/process/program 6 :Translator: Alex Shi <alex.shi@linux.alibaba.c 7 Hu Haowen <2023002089@link.tyut.ed 8 9 .. _tw_programming_language: 10 11 程序設計語言 12 ============ 13 14 內核是用C語言 :ref:`c-language <tw_c-lan 15 在 ``-std=gnu11`` :ref:`gcc-c-dialect-options 16 17 這種方言包含對語言 :ref:`gnu-extensio 18 19 對於一些體系結構,有一些使用 :re 20 的支持,儘管在編寫此文檔時還沒 21 22 屬性 23 ---- 24 25 在整個內核中使用的一個常見擴展 26 屬性允許將實現定義的語義引入語 27 重大的語法更改(例如添加新關鍵 28 29 在某些情況下,屬性是可選的(即 30 即使其速度較慢或執行的編譯時檢 31 32 內核定義了僞關鍵字(例如, ``pure 33 ``__attribute__((__pure__))`` ),以檢測 34 請參閱 ``include/linux/compiler_attributes. 35 36 .. _tw_c-language: 37 38 c-language 39 http://www.open-std.org/jtc1/sc22/wg14/www/ 40 41 .. _tw_gcc: 42 43 gcc 44 https://gcc.gnu.org 45 46 .. _tw_clang: 47 48 clang 49 https://clang.llvm.org 50 51 .. _tw_icc: 52 53 icc 54 https://software.intel.com/en-us/c-compiler 55 56 .. _tw_gcc-c-dialect-options: 57 58 c-dialect-options 59 https://gcc.gnu.org/onlinedocs/gcc/C-Dialec 60 61 .. _tw_gnu-extensions: 62 63 gnu-extensions 64 https://gcc.gnu.org/onlinedocs/gcc/C-Extens 65 66 .. _tw_gcc-attribute-syntax: 67 68 gcc-attribute-syntax 69 https://gcc.gnu.org/onlinedocs/gcc/Attribut 70 71 .. _tw_n2049: 72 73 n2049 74 http://www.open-std.org/jtc1/sc22/wg14/www/ 75
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.