04 2021 档案

摘要:转载自:https://www.howtoforge.com/linux-ldd-command/ Linux ldd Command Explained with Examples On this page Linux ldd command Q1. How to use the ldd comm 阅读全文
posted @ 2021-04-18 20:35 逃之夭夭uu 阅读(363) 评论(0) 推荐(0)
摘要:转载自:https://www.thegeekstuff.com/2012/03/linux-nm-command/#:~:text=Another%20powerful%20feature%20of%20nm%20command%20is%20to,nm%20provides%20a%20flag 阅读全文
posted @ 2021-04-18 19:47 逃之夭夭uu 阅读(454) 评论(0) 推荐(0)
摘要:经常可以在C的头文件中看到如下代码: 1 #ifdef __cplusplus 2 extern "C" { 3 #endif 4 /* head file contents */ 5 #ifdef __cplusplus 6 } 7 #endif 那么这一段代码的作用又是什么呢? 查询的时候发现一 阅读全文
posted @ 2021-04-18 15:12 逃之夭夭uu 阅读(631) 评论(0) 推荐(0)
摘要:extern int a[]; //size of array extern数组时,链接器并不知道数组的大小信息; When compiling b.c, the compiler doesn't know the size of a - you haven't told it. All it kn 阅读全文
posted @ 2021-04-18 01:00 逃之夭夭uu 阅读(873) 评论(0) 推荐(0)
摘要:Linux目标文件五个段 Linux下编译后生成的目标文件(.o)一共包含五个数据段:data(数据段)、bss段、text(程序段)、堆、栈; 本文通过Linux下size命令查看存放在data、bss、text的变量及常量; 先说结论: data:存放已初始化的静态变量; bss:存放未初始化或 阅读全文
posted @ 2021-04-17 21:32 逃之夭夭uu 阅读(2354) 评论(0) 推荐(0)
摘要:摘自《C Primer Plus第六版中文版》page484 声明时可使用的符号 符号 含义 * 表示一个指针 () 表示一个函数 [] 表示一个数组 下面时一些较复杂的声明示例: int board[8][8]; //声明一个内含int数组的数组 int **ptr; //声明一个指向指针的指针, 阅读全文
posted @ 2021-04-04 17:14 逃之夭夭uu 阅读(712) 评论(0) 推荐(0)