Welcome, Guest!

Here are some links you may find helpful

Kernel + Module code swapping on the Dreamcast

Ioncannon

Active member
Original poster
Registered
Jun 25, 2019
34
24
8
I recall reading somewhere in the documentation (US or JP) that the DC supported code swapping to keep ram usage down. An example of this method if the FF games like FF7 which had a core "kernel" and seperate "modules" for each state (field, battle, menu, etc). This way only the relevant code (minus some overhead) has to be resident in the ram.

Did anyone run into documentation about this or a way to setup gcc to segment code like this?
 

tsowell

New member
Jul 18, 2020
1
1
1
KallistiOS has an API for this. Check out KallistiOS/include/kos/library.h, and there's a Makefile for the modules in KallistiOS/loadable. DreamShell uses it if you want a real-world example.
 
  • Like
Reactions: FamilyGuy