21 Aug
2018
21 Aug
'18
6:59 a.m.
On FPGA Oberon, the inner core consists of the 4 modules Kernel, FileDir, Files, Modules. The boot loader transfers it byte for byte to memory location 0. So, if you know the inner workings of how the modules are loaded, one way to “guess” the size of the inner core (not from disk but once loaded), is: mod := root; name := “Modules”; WHILE (mod # NIL) & (name # mod.name) DO mod := mod.next END ; IF mod # NIL THEN size := SYSTEM.VAL(LONGINT, mod) + mod.size END ;