Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ALIGN キーワードはリンカー スクリプトで何をしますか? リンカ スクリプトに関する多くのチュートリアルを読みましたが、ALIGN が実際に何をしているのか理解できません。誰でも簡単に説明できますか。ありがとう!
典型的な使い方は
. = ALIGN(8);
これは、現在の位置が 8 バイト境界に揃うまでパディング バイトを挿入することを意味します。あれは:
while ((current_location & 7) != 0) *current_location++ = padding_value;