C (简体中文)

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
翻译状态:本文是 C翻译。上次翻译日期:2018-10-22。如果英文版本有所更改,则您可以帮助同步翻译。

Kernels (简体中文) 内核和 GNU (简体中文) 用户空间主要由 C写成.

Arch Linux使用GNU C Library (glibc) 作为C标准库; 它是 base group的一部分.

你可以使用 GNU toolchain 或者 LLVM toolchain 来用 C/C++/Objective-C开发软件.

有用的工具

  • Valgrind — 用来找到程序里内存管理问题的工具.
https://valgrind.org/ || valgrind
https://github.com/distcc/distcc || distcc
  • rr — 针对C/C++的轻量的记录和定性调试工具,用的是GDB.
https://rr-project.org/ || rrAUR

静态代码分析

  • Cppcheck — 静态C/C++代码分析工具.
http://cppcheck.sourceforge.net/ || cppcheck
  • Splint — 静态检查C程序安全问题和代码错误的工具.
https://repo.or.cz/splint-patched.git || splint

可选编译器

  • TCC — 微型的C编译器,声称比GCC快.
https://bellard.org/tcc/ || tcc
  • ACK — 阿姆斯特丹编译包.
http://tack.sourceforge.net/ || ack-gitAUR
  • PCC — 可移植的C编译器.
http://pcc.ludd.ltu.se/ || pccAUR
  • SDCC — 可重定向的 ANSI C 编译器.
http://sdcc.sourceforge.net/ || sdcc

查阅 Wikipedia:List of compilers#C compilers.

libc实现的替代品

  • musl — C标准库的轻量实现.
https://www.musl-libc.org/ || musl

https://wiki.gnome.org/Projects/GLib || glibAUR

参阅:

参阅