![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小玩意
JT_Notes
这个作者很懒,什么都没留下…
展开
-
工具:探测数据类型存储空间大小
探测数据类型存储空间大小作者:jafon.tian转载请注明出处:https://blog.csdn.net/JT_Notes在C语言编程得时候,经常需要知道程序编译器对各种数据类型分配的存储空间大小,进而进行精确的内存操作。下面给出一种探测方法,核心宏定义#define PRINT_SIZE(type) do{ \ printf("sizeof(" #type...原创 2018-08-16 11:16:32 · 261 阅读 · 0 评论 -
Shell:命令使用集锦
作者:jafon.tian转载请注明出处:https://blog.csdn.net/JT_Notesenable enable: usage: enable [-a] [-dnps] [-f filename] [name …]使用enable也是确认shell启动了哪些内置命令,比如:$ enable -aenable .enable :enable [...原创 2018-08-21 10:55:29 · 194 阅读 · 0 评论 -
工具:探测gcc缺省include目录
本文来自 shiyongyue 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/shiyongyue/article/details/77866950?utm_source=copy$ gcc -v -x c -E /dev/nullUsing built-in specs.[...]#include "..." search starts here:#i...转载 2018-09-27 10:03:41 · 338 阅读 · 0 评论 -
工具:探测ld缺省script
命令说明–verbose [=NUMBER] Output lots of information during link$ ld --verboseGNU ld (GNU Binutils for Ubuntu) 2.26.1 Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_i...原创 2018-10-12 13:25:50 · 321 阅读 · 0 评论 -
linux:内核如何定位并调用设备驱动初始化函数
写过linux驱动程序的人都知道需要将驱动的初始化函数通过module_init注册,然后在通过menuconfig配置的时候选择随内核一起编译(非模块),系统在启动的时候就能够自动调用驱动初始化函数了。真是一件神奇的事情!驱动程序模板(模板来源:https://blog.csdn.net/zhuhuibeishadiao/article/details/51407438)#include &...原创 2018-10-12 15:30:29 · 1958 阅读 · 0 评论 -
linux:gcc undefined reference之-l选项位置
作者:jafon.tian转载请注明出处:https://blog.csdn.net/JT_Notes今天遇到一个有意思的问题,本来想写个程序验证一个简单的数学问题,结果编译的时候就报出了“undefined reference”错误。程序很简单,就是求一个算数值,调用了libm库的log10函数。#include <math.h>#include <stdio.h&g...原创 2018-11-22 17:55:59 · 956 阅读 · 0 评论