Groups
Sign in
Groups
KOZOS友の会
Conversations
About
Send feedback
Help
メモリヘッダkzmem_blockのサイズについて
48 views
Skip to first unread message
go.wug...@gmail.com
unread,
Sep 24, 2018, 9:24:27 AM
9/24/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KOZOS友の会
本のp379のkzmem_blockのサイズはポインタ一個とint型一個で合わせて6バイトと思ってましたが、p383では8バイトとなっていますが、なぜでしょうか?
Tetsuya Horie
unread,
Sep 25, 2018, 2:30:35 AM
9/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KOZOS友の会
説明の順序が前後しちゃっているようですが…
P.463 「12.2.5 構造体のパディング」に理由が書いてありますよ。
2018年9月24日月曜日 22時24分27秒 UTC+9
go.wug...@gmail.com
:
本のp379のkzmem_blockのサイズはポインタ一個とint型一個で合わせて6バイトと思ってましたが、p383では8バイトとなっていますが、なぜでしょうか?
go.wug...@gmail.com
unread,
Sep 25, 2018, 8:15:52 AM
9/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to KOZOS友の会
ありがとうございます!
4バイトのポインタのアライメントのためですね。
スッキリしました。
Reply all
Reply to author
Forward
0 new messages