Vote UpVote

Alignments and layouts in Delphi

The Programming Works – Every Delphi type, built-in or user-defined, has 2 properties that affect memory placement of its instances: alignment and size. The alignment affects the starting address of an instance; for example the alignment of LongInt type is equal to 4, means that the starting address of any LongInt variable is a multiple of 4. The size is equal to the number of bytes occupied by an instance. For any type, built-in or user-defined, the size is multiple of the alignment. The rule has only one notable exception, the FPU Extended type (and possibly user-defined types that include it) which has the ...
Favorite? Off-Topic? Serg @ 2014-04-29 06:01


Visits: 962
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)