随笔分类 -  compile_debug

compile, link, and debug
摘要:http://news.tsinghua.edu.cn/publish/thunewsen/9676/2017/20170821140517898435093/20170821140517898435093_.html https://www.researchgate.net/scientific- 阅读全文
posted @ 2018-07-28 17:27 soul.stone 阅读(167) 评论(0) 推荐(1)
摘要:http://blog.csdn.net/zm_21/article/details/25868589 Iperf的主要功能如下: TCP 测量网络带宽 报告MSS/MTU值的大小和观测值 支持TCP窗口值通过套接字缓冲 当P线程或Win32线程可用时,支持多线程。客户端与服务端支持同时多重连接 测 阅读全文
posted @ 2017-12-02 21:23 soul.stone 阅读(3677) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/21aspnet/article/details/6724457 最后的动态库搜索路径是默认搜索路径/usr/lib。 综合以上结果可知,动态库的搜索路径搜索的先后顺序是: 1.编译目标代码时指定的动态库搜索路径; //-L、-rpath和-rpath-li 阅读全文
posted @ 2017-09-16 17:29 soul.stone 阅读(1344) 评论(0) 推荐(0)
摘要:首先 --whole-archive 和 --no-whole-archive 是ld专有的命令行参数,gcc 并不认识,要通gcc传递到 ld,需要在他们前面加-Wl,字串。 --whole-archive 可以把 在其后面出现的静态库包含的函数和变量输出到动态库,--no-whole-archi 阅读全文
posted @ 2017-09-16 16:57 soul.stone 阅读(310) 评论(0) 推荐(0)
摘要:问题描述 前段时间项目开发中,实现了一个动态库,封装了一些方法。然后基于这个动态库,实现了一个应用程序。应用程序中含有全局变量A,动态库中也含有全局变量A,当我调用动态库中函数后,发现应用程序的A发生了变化!!!O,My God!对于我这种还没在Linux下做过开发的人来说,一头雾水。。。。。。 于 阅读全文
posted @ 2017-09-16 16:50 soul.stone 阅读(5691) 评论(0) 推荐(0)
摘要:http://blog.chinaunix.net/uid-7828352-id-4477460.html 情况是这样的,碰到一个棘手的问题:我们不确定外部模块是否提供一个函数func,但是我们不得不用这个函数,即自己模块的代码必须用到func函数: extern int func(void); i 阅读全文
posted @ 2017-09-09 12:19 soul.stone 阅读(164) 评论(0) 推荐(0)
摘要:1、查看内核符号:derek@ubox:~/share$ sudo modprobe uioderek@ubox:~/share$ cat /proc/kallsyms | grep uio0000000000000000 t map_type_show [uio]0000000000000000 阅读全文
posted @ 2017-04-16 19:24 soul.stone 阅读(298) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/linuw/article/details/6048307 __attribute__ ((constructor))指定的函数在共享库loading的时候调用,__attribute__ ((destructor))指定的函数在共享库unloading的时 阅读全文
posted @ 2017-04-10 20:28 soul.stone 阅读(1173) 评论(0) 推荐(0)
摘要:1,编译so 2,编译app 阅读全文
posted @ 2017-04-08 11:49 soul.stone 阅读(199) 评论(0) 推荐(0)