[Oberon] maxCode limit in ORG
schierlm at gmx.de
Wed Apr 7 23:09:05 CEST 2021
Am 06.04.2021 um 20:40 schrieb Joerg:
> It‘s indeed arbitrary. Keep in mind: it is in words. So, 8000 means ~32 kByte.
> It’s generally a bad practice to generate modules bigger than 32 kByte. Altough there might be special cases where a split in several modules is not wanted or generates „strange“ module borders.
> Indeed on my FPGA system with 15MB of memory and 1MB for color display, I could increase this limit, but I did not.
In my experience, when increasing the limits of the compiler you first
hit the 64KB globals limit, before running into any real RAM shortage.
The arrays in the compiler have static sizes, so if you increase the
limits, the arrays will grow even if not needed.
More information about the Oberon