摘要:
1.重定向输出 $ls -l > lsoutput.txt 这条命令把ls命令的输出保存到lsoutput.txt中 $ps >> lsoutput.txt 这条命令会将ps的内容追加到指定文件的尾部。 下面的命令将把标准输出和标准错误输出分别定向到不通的文件中: $kill -HUP 1234 > 阅读全文
posted @ 2017-07-16 16:29
夏天的西瓜君
阅读(197)
评论(0)
推荐(0)
摘要:
静态库,也称作归档文件(archive),按惯例它们的文件是以.a结尾。 1.创建 sumadd.c文件 #include <stdio.h> int sumadd(int a,int b){ return a+b;} 创建 sumsub.c文件 #include <stdio.h> int sum 阅读全文
posted @ 2017-07-16 10:52
夏天的西瓜君
阅读(597)
评论(0)
推荐(0)
摘要:
hello.c 代码 #include <stdio.h> #include <stdlib.h> int main() { printf ("hello,my world!"); exit(0); } 编译,运行 $gcc -o hello hello.c $./hello hello,my wo 阅读全文
posted @ 2017-07-16 10:11
夏天的西瓜君
阅读(259)
评论(0)
推荐(0)
摘要:
简介gcc and g++现在是gnu中最主要和最流行的c & c++编译器 .gcc/g++在执行编译工作的时候,总共需要以下几步:1.预处理,生成.i的文件[预处理器cpp]2.将预处理后的文件不转换成汇编语言,生成文件.s[编译器egcs]3.有汇编变为目标代码(机器代码)生成.o的文件[汇编 阅读全文
posted @ 2017-07-16 09:50
夏天的西瓜君
阅读(294)
评论(0)
推荐(0)

浙公网安备 33010602011771号