随笔分类 - 汇编 objdump
#ifdef ... #endif
摘要:#if defined(uic_OSD_RES_1920x1080)#define uim_1920toHRes(h) (h)#define uim_1080toVRes(v) (v)#elif defined(uic_OSD_RES_1366x768)#define uim_1920toHRes(h) (((h)*683)/960)#define uim_1080toVRes(v) (((v)*32)/45)#elif defined(uic_OSD_RES_960x540)#define uic_GP_COORD_SYS gpe_COOR...
阅读全文
objdump 用法
摘要:objdump -S a.out 反汇编!!!!!objdump -d a.out 反汇编 a@65-server:~/learn$ objdump -p, --private-headers Display object format specific file header contents -h, --[section-]headers Display the contents of the section headers -x, --all-headers Display the contents of all headers -d, --d...
阅读全文
GCC 编译步骤 及工作
摘要:转自:http://www.cnblogs.com/napoleon_liu/archive/2011/05/06/2038698.htmlgcc 编译 C源码 四个步骤:1)预处理 Pre-processing 编译器对各种预处理命令进行处理:包含头文件的包含、宏定义的扩展、条件编译选项等。指令主要有: #define, #include, #ifdef ... #endif可以用gcc 的选项“-E” 进行查看。 gcc -E hello.c2) 编译阶段 Compiling 编译器首先检查代码的规范性、是否有语法错误等,之后把代码翻译成汇编语言。该阶段只进行编译而不进行汇编,生成汇编代码
阅读全文
浙公网安备 33010602011771号