Overlays with Norcroft C
GavinWraith (26) 1563 posts |
Has anybody had experience of using overlays with the Norcroft C compiler suite? |
GavinWraith (26) 1563 posts |
I have successfully recompiled RiscLua using overlays: segment 1 can hold the lpeg or bc libraries, segment 2 can hold the debug, coroutine or finalizer libraries. It is not worth the effort, however, since the interpreter with no segments loaded is 73k; its usual size, with all libraries loaded, is 90k. So we are talking piffling memory savings. Nevertheless I found it an educational exercise. The chapter on Link in the Acorn DDE manual is not as clear as it could be. Be warned that if the -ov option is selected then it must be understood that word image_file for the -o option refers to a directory. The linker will then fill that directory with files called !RunImage, 1_1, 1_2, … , 2_1, … etc. It makes you wince. Still, it works. |