摘要: #include<stdio.h>#include<stdlib.h>#include<sys/types.h>#include<sys/stat.h>#include<fcntl.h>#include<unistd.h> int main(){ //打开存在的文件 int fd=open("tes 阅读全文
posted @ 2019-07-24 21:35 荼离伤花 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: 1.sudo apt install gdb 2.在生成可执行文件时加入-g gcc Test.c -o Test -g 3.启动gdb调试 gdb Test 4.调试gdb时的一些用法 5.通过core文件进行调试 ulimit -c 查看core文件大小 1.ulimit -c unlimite 阅读全文
posted @ 2019-07-24 17:17 荼离伤花 阅读(155) 评论(0) 推荐(0) 编辑
摘要: makefile类似于一个脚本文件,记录了程序从编译到连接所需的一切命令,编辑好之后可以通过make命令直接运行。 1.make的安装 2.makefile文件的编写规则 3.规则中变量的使用 4.指定编译目标 5.指定makefile文件 阅读全文
posted @ 2019-07-24 14:48 荼离伤花 阅读(906) 评论(0) 推荐(0) 编辑