For compatibility with Microsoft Windows compilers, GCC supports a
set of #pragma
directives that change the maximum alignment of
members of structures (other than zero-width bit-fields), unions, and
classes subsequently defined. The n value below always is required
to be a small power of two and specifies the new alignment in bytes.
#pragma pack(
n)
simply sets the new alignment.
#pragma pack()
sets the alignment to the one that was in
effect when compilation started (see also command-line option
-fpack-struct[=n] see Code Gen Options).
#pragma pack(push[,
n])
pushes the current alignment
setting on an internal stack and then optionally sets the new alignment.
#pragma pack(pop)
restores the alignment setting to the one
saved at the top of the internal stack (and removes that stack entry).
Note that #pragma pack([
n])
does not influence this internal
stack; thus it is possible to have #pragma pack(push)
followed by
multiple #pragma pack(
n)
instances and finalized by a single
#pragma pack(pop)
.
Some targets, e.g. i386 and PowerPC, support the ms_struct
#pragma
which lays out a structure as the documented
__attribute__ ((ms_struct))
.
#pragma ms_struct on
turns on the layout for structures
declared.
#pragma ms_struct off
turns off the layout for structures
declared.
#pragma ms_struct reset
goes back to the default layout.
今天是个什么日子 | 九月三号是什么日子 | 升血压吃什么药 | 膀胱结石是什么症状 | 血尿是什么原因引起的男性 |
头经常晕是什么原因 | 酸辣粉的粉是什么粉 | 老人说胡话是什么征兆 | 手持吸尘器什么牌子好 | 吃什么对卵巢好 |
橘子什么季节成熟 | 胰腺疼痛吃什么药 | 肺实性结节是什么意思 | 眼底出血是什么原因 | 西安古时候叫什么 |
痨病是什么病 | 卧底是什么意思 | 脸颊两侧长斑是什么原因怎么调理 | 什么叫凤凰男 | 三问表是什么意思 |
用白醋泡脚有什么好处hcv9jop6ns5r.cn | pio是什么意思hcv9jop4ns9r.cn | 什么是酸性食物hcv7jop4ns7r.cn | 疯狂动物城狐狸叫什么hcv7jop4ns7r.cn | 骆驼奶有什么功效hcv8jop3ns0r.cn |
1974属什么clwhiglsz.com | 血管炎症状表现是什么hcv8jop5ns5r.cn | 小孩突然抽搐失去意识是什么原因hcv9jop5ns6r.cn | 标的是什么hcv8jop3ns3r.cn | 赛字五行属什么hcv9jop7ns2r.cn |
pppd是什么意思hcv8jop1ns2r.cn | hbsab阳性是什么意思hcv9jop0ns0r.cn | 枸杞什么季节成熟hcv8jop8ns6r.cn | 为什么越睡越困越疲惫hcv7jop4ns6r.cn | 胆固醇高吃什么hcv9jop2ns1r.cn |
aojo眼镜什么档次hcv8jop5ns1r.cn | 寅时五行属什么hcv8jop1ns6r.cn | 痔疮什么样子hcv7jop4ns6r.cn | 1963属什么hcv9jop5ns0r.cn | 更年期吃什么药hcv9jop5ns2r.cn |