#include static struct sss{ char f; struct {float m;} snd; } sss; #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char …
S-3530A 源代码
汇集 S-3530A 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
#include static struct sss{ long f; struct {double m;} snd; } sss; #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char…
+++Struct char inside struct starting with pointer: size=8,align=4 offset-pointer=0,offset-sss-char=4, align-pointer=4,align-sss-c…
+++Struct char inside struct starting with int: size=8,align=4 offset-int=0,offset-sss-char=4, align-int=4,align-sss-char=1
+++Struct longdouble inside struct starting with float: size=36,align=12 offset-float=0,offset-sss-longdouble=12, align-float=4,al…
+++Struct int inside struct starting with char: size=8,align=4 offset-char=0,offset-sss-int=4, align-char=1,align-sss-int=4
+++Struct longdouble inside struct starting with char: size=36,align=12 offset-char=0,offset-sss-longdouble=12, align-char=1,align…
+++Struct long inside struct starting with longdouble: size=32,align=16 offset-longdouble=0,offset-sss-long=16, align-longdouble=1…
+++Struct pointer inside struct starting with float: size=8,align=4 offset-float=0,offset-sss-pointer=4, align-float=4,align-sss-p…
+++Struct longlong inside struct starting with short: size=16,align=8 offset-short=0,offset-sss-longlong=8, align-short=2,align-ss…