Modula-2: Add LongStorage module for large memory allocations
New Modula-2 modules allow allocating more than 4GB of memory.
Two new Modula-2 PIM (
In Details
This patch introduces LongStorage and LongSysStorage modules for GCC's GNU Modula-2 implementation. These modules provide procedures to manage dynamic memory allocation beyond the typical 4GB limit imposed by CARDINAL types on 32-bit systems or standard library interfaces. The M2Diagnostic module is enhanced with corresponding Long procedures to track memory usage accurately. A new test suite largestore.mod verifies these large memory allocation capabilities. This addresses a significant limitation for applications requiring substantial memory, particularly relevant in scientific…
- Modula-2
- A procedural programming language designed by Niklaus Wirth, known for its emphasis on modularity and strong typing. GCC includes an implementation for it.
- PIM
- a design style in Modula-2 that stands for "Programming In Modula-2". It refers to generic modules that can be adapted to specific types, often achieved through parameterization or other mechanisms.
- CARDINAL
- In Modula-2, a data type representing non-negative integers. Its maximum value typically depends on the system's word size (e.g., 2^32-1 on a 32-bit system).
- GNU Modula-2
- GCC's implementation of the Modula-2 programming language, providing a compiler and associated libraries.