This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
dev:crosscompiler:arrays [2019/07/16 12:01] – [Multidimensional Arrays] ursgraf | dev:crosscompiler:arrays [2021/07/30 12:18] – [Arrays] ursgraf | ||
---|---|---|---|
Line 5: | Line 5: | ||
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 // | ||
- | If the field //length// is used in Java the Bytecode instruktion // | + | If the field //length// is used in Java the Bytecode instruktion // |
===== Generating Arrays ===== | ===== Generating Arrays ===== |