随笔分类 -  c

摘要:http://blog.csdn.net/xiaocainiaoshangxiao/article/category/1800937 阅读全文
posted @ 2016-06-03 21:01 zengkefu 阅读(148) 评论(0) 推荐(0)
摘要:https://github.com/VVictorQi 阅读全文
posted @ 2016-05-30 07:37 zengkefu 阅读(180) 评论(0) 推荐(0)
摘要:Makefile详解--隐含规则(转) Makefile系列文章,这里有个前辈连续洗了一个系列来介绍,共有26篇博客文章。 http://www.cppblog.com/ivenher/archives/2007/04.html Makefile隐含规则 ———— 在我们使用Makefile时,有一些我们会经常使用,而且使用频率非常高的东西,比如,我们编译 C/C++的源程序为中间目标文... 阅读全文
posted @ 2016-05-29 17:50 zengkefu 阅读(5338) 评论(0) 推荐(0)
摘要:binutils-- a tools set * ld - the GNU linker. * as - the GNU assembler. * addr2line - Converts addresses intofilenames and line numbers. * ar - A utility for creating, modifyingand extracting fr... 阅读全文
posted @ 2016-05-29 15:29 zengkefu 阅读(348) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/cywosp/article/details/8767327SYNOPSIS #include #include #include int open(const char *pathname, int flags); int open(const char *pathname,... 阅读全文
posted @ 2016-05-28 18:02 zengkefu 阅读(194) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/zhuyp1015/category/376363.html 阅读全文
posted @ 2016-05-26 17:30 zengkefu 阅读(127) 评论(0) 推荐(0)
摘要:http://xinqiu.me/all-archives/ https://github.com/xinqiu 阅读全文
posted @ 2016-05-25 12:13 zengkefu 阅读(170) 评论(0) 推荐(0)
摘要:http://www.chongh.wiki/blog/2016/02/17/memory-safety/ 阅读全文
posted @ 2016-05-25 11:36 zengkefu 阅读(203) 评论(0) 推荐(0)
摘要:三.基于文件的描术符号 1.得到文件描术符号/释入文件描术符号 a.文件类型 目录文件 d 普通文件 f 字符设务文件 c 块设备文件 b 软连接文件 l 管道文件 p socket文件 s 字符设备文件: [root@monitor ~]# ls -l /dev/console crw--... 阅读全文
posted @ 2016-05-24 18:10 zengkefu 阅读(636) 评论(0) 推荐(0)
摘要:make 与 makefile 1.目标的语法 目标名:依赖目标 @命令 @命令 make的命令行使用 make -f make 脚本文件 目标名 2.目标的划分 demo.mk demo: gcc -c -fpic input.c gcc -c -fpic primer.c gcc -shared -olibde... 阅读全文
posted @ 2016-05-24 16:14 zengkefu 阅读(263) 评论(0) 推荐(0)
摘要:[root@monitor ~]# LD_DEBUG=help ls Valid options for the LD_DEBUG environment variable are: libs display library search paths reloc display relocation processing files displ... 阅读全文
posted @ 2016-05-23 15:42 zengkefu 阅读(607) 评论(0) 推荐(0)
摘要:在基于 GNU glibc 的系统上,包括所有 linux 系统,ELF 可执行二进制文件的运行自动导致程序加载器被加载并且运行。 在 linux 下,加载器是 /lib/ld-linux.so.X(X是版本号)。然后加载器搜索、加载程序所要使用的动态链接库。被搜索的文件夹列表保存在文件 /etc/ 阅读全文
posted @ 2016-05-23 15:13 zengkefu 阅读(369) 评论(0) 推荐(0)
摘要:[root@monitor ~]# vi test.c #include <stdio.h>#include <stdlib.h> main() { char *p3=0; int *p=sbrk(4); int *p2=sbrk(4); int *p1=brk(p2); int *p4=sbrk( 阅读全文
posted @ 2016-05-19 21:09 zengkefu 阅读(428) 评论(0) 推荐(0)
摘要:C++的new与malloc的关系 小实验: #include <stdio.h>#include <stdlib.h>#include <unistd.h>int main(){ int *p1 = (int*)malloc(4); int *p2 = new int; int *p3 = (in 阅读全文
posted @ 2016-05-18 15:13 zengkefu 阅读(369) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/pcliuguangtao/article/category/676422 阅读全文
posted @ 2016-05-15 06:46 zengkefu 阅读(221) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/liuaigui/article/details/4141563 阅读全文
posted @ 2016-05-14 16:47 zengkefu 阅读(250) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/bangerlee/archive/2012/04/30/2476190.html 阅读全文
posted @ 2016-05-09 23:31 zengkefu 阅读(165) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/ljx0305/article/details/4065058 epoll - I/O event notification facility 在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制 阅读全文
posted @ 2016-05-09 21:50 zengkefu 阅读(205) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/destina/article/details/6198443 感谢作者的分享! http://blog.csdn.net/destina/article/details/6198443 感谢作者的分享! 一 valgrind是什么? Valgrind是一套 阅读全文
posted @ 2016-05-09 21:47 zengkefu 阅读(3419) 评论(0) 推荐(0)
摘要:Call C++ function from C & Call C function from C++ (C和C++函数互相调用) By williamxue on Jun 12, 2007 C++中调用C函数 这个比较容易,使用关键字extern就可以,有以下两种格式: extern "langu 阅读全文
posted @ 2016-05-03 17:51 zengkefu 阅读(522) 评论(0) 推荐(0)