This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:crosscompiler:arrays [2015/03/29 11:45] – [Multidimensional Arrays] ursgraf | dev:crosscompiler:arrays [2017/03/01 09:42] – ursgraf | ||
---|---|---|---|
Line 2: | Line 2: | ||
The following figure demonstrates how arrays are implemented in the memory. | The following figure demonstrates how arrays are implemented in the memory. | ||
[{{ .: | [{{ .: | ||
- | An array extends // | + | An array extends // |
The field //length// denotes the number of elements of the array (16 bit). //heap// is used for the garbage collection ([[..: | The field //length// denotes the number of elements of the array (16 bit). //heap// is used for the garbage collection ([[..: | ||
When accessing array elements the code generator inserts code to check if the element index is in the range 0 to // | When accessing array elements the code generator inserts code to check if the element index is in the range 0 to // |