10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implementation of Contiguous Arrays• Access function maps subscript expressions to the addressof an element in the array.• Single-Dimensional Arrays:– implemented as a block of adjacent memory cells.– access function for single-dimensioned arrays (row major):A : array (L..U) of elem_type;address(A[k]) = address(A[L]) + (k – L) ∗ element_sizeLecture 061-24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!