What is the "real" size of memory occupied by a static array?

This question is related to my previous question, What is the "real" size of memory occupied by a dynamic array?

Example:

var
  AText: array [0..6] of AnsiChar;

Question

What is the real size of AText used in memory? Is it really 7 bytes?

+5
source share
2 answers

I think so. Perhaps D2010 + adds some reference to the RTTI record.

Then there is also alignment, the next variable / field may not start immediately after this variable / field leaves some weak bytes. (usually rounded to some degree 2, e.g. 16)

, , var .. , / var, .

+1

, 7

+2

All Articles