惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
Intezer
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
T
Tenable Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
P
Privacy International News Feed
IT之家
IT之家
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
博客园_首页
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
NISL@THU
NISL@THU
I
InfoQ
D
DataBreaches.Net
有赞技术团队
有赞技术团队
K
Kaspersky official blog
Security Latest
Security Latest
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AI
AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic

博客园 - zrs

感触 <<我奋斗了18年才和你坐在一起喝咖啡>> 求GIS 路名绘制解决方案 解析shp文件 namespace 名字空间 祝福老段 gcc编译环境下的一些体会 gcc编译环境太差了 Linux动态链接库 中兴映像 几句话 wince不支持C运行时库 time() 矢量绘图 新科十年 Gsoap调用java实现的webservice时,如何传递复杂数据类型? gSOAP Visual Studio 2005 SP1-MS有史以来安装表现最差的补丁 GOOGLE手机地图不咋的 第一次面试别人
结构体内存对齐
zrs · 2008-11-13 · via 博客园 - zrs

结构体内存对齐

      似乎每次笔试都会出现结构体内存对齐的问题,所以映像很深刻,但是实际编程中今天第一次遇到这样的问题,阴沟里翻船了。sizeof一个结构体时,VC包括VS都会默认做内存对齐,每次写解包的LOG信息是老是多出3个字节,太粗心了,小问题浪费了大量的时间.
    最近在玩GCC,不知道GCC会不会出现这样的问题。。。。。

posted on 2008-11-13 22:23  zrs  阅读(181)  评论(0)    收藏  举报