60 likes | 148 Views
Associated Processor 15: Structured Storage. David Liebtag. Title slide. Associated Processor 15. Strong data typing Structured storage Arrays outside workspace Arrays larger than workspace (for C1, C4, I4, E8, and J16) External function parameters Naming elements of arrays.
E N D
Associated Processor 15: Structured Storage David Liebtag Title slide
Associated Processor 15 • Strong data typing • Structured storage • Arrays outside workspace • Arrays larger than workspace (for C1, C4, I4, E8, and J16) • External function parameters • Naming elements of arrays Basic text slide
Associated Processor 15 – Syntax Pattern 15 ⎕NA 'VarName' (Pattern Library) 15 ⎕NA 'VarName' (Pattern Address) 15 ⎕NA 'VarName' ('ADDRESS' 'VarName') 15 ⎕NA 'AddrName' Pattern: '[count] type rank [shape]' Library: Name of library (DLL) containing exported variable Address: Address of memory containing data Basic text slide
Associated Processor 15 – Patterns Sample patterns: 'I4 0' ⍝ Integer scalar 'C1 2 3 4' ⍝ Character matrix 'S1 1 64' ⍝ String 'G0 1 3 I4 1 3 E8 2 3 4 C1 1 32' ⍝ Nested array Basic text slide
Associated Processor 15 – Restrictions Processor 15 creates a copy of the entire array in the workspace each time the array is accessed if: • The array contains any data other than C1, C4, I4, E8, or J16 • The array is nested Processor 15 only supports fixed size arrays Basic text slide
Let’s try some things,,, Basic text slide