摘要: 阅读指引: 示例代码为什么要字节对齐编译器对字节对齐的一些规则结合编译器原则分析示例总结 1.示例代码 先看一下这段程序的运行结果。示例代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->structA{inta;charb;shortc;};structB{chara;intb;shortc;};#pragmapack(2)structC{chara;intb;shortc;};#pragmapack(1)structD{inta;char 阅读全文
posted @ 2011-01-13 13:34 Repository 阅读(11106) 评论(6) 推荐(12) 编辑