记录C语言程序helloworld在Linux系统上从编写、编译到调用的全过程。 一、编写源代码 经典的helloworld程序,源代码hello.c如下: #include <stdio.h> int main() { printf("hello, world\n"); } 程序员在IDE中,或者文本编辑器(如Vim、Emacs等)中敲入程序源代码,并保存为文本文件hello.c,文件的后缀名为.c。 文件的内容是由0、1组成的比特串。而每8个比特又组成一组,称为一个字节&