Memory layout of a data structure: Difference between revisions
Content added Content deleted
(better Pascal example) |
(Merge omitted languages at bottom and add Processing) |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
⚫ | |||
It is often useful to control the memory layout of fields in a data structure to match an interface control definition, or to interface with hardware. Define a data structure matching the RS-232 Plug Definition. Use the 9-pin definition for brevity. |
It is often useful to control the memory layout of fields in a data structure to match an interface control definition, or to interface with hardware. Define a data structure matching the RS-232 Plug Definition. Use the 9-pin definition for brevity. |
||
Pin Settings for Plug |
Pin Settings for Plug |
||
Line 1,212: | Line 1,211: | ||
{{omit from|AWK}} |
{{omit from|AWK}} |
||
{{omit from|Batch File|No memory management or data structures.}} |
{{omit from|Batch File|No memory management or data structures.}} |
||
⚫ | |||
{{omit from|Clojure}} |
{{omit from|Clojure}} |
||
{{omit from|E}} |
{{omit from|E}} |
||
Line 1,224: | Line 1,224: | ||
{{omit from|PARI/GP}} |
{{omit from|PARI/GP}} |
||
{{omit from|PlainTeX}} |
{{omit from|PlainTeX}} |
||
{{omit from|Processing}} |
|||
{{omit from|PureBasic}} <!-- Does not have bit-sized data types. --> |
{{omit from|PureBasic}} <!-- Does not have bit-sized data types. --> |
||
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have user-defined data structures. --> |
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have user-defined data structures. --> |