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
36
24
8
AGName
Ioncannon
AG Join Date
Oct 19, 2010
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

neo

Well-known member
Feb 1, 2019
64
59
18
AGName
Mrneo240
AG Join Date
06/08/2010
Katana uses code overlays
 

Ioncannon

Active member
Original poster
Registered
Jun 25, 2019
36
24
8
AGName
Ioncannon
AG Join Date
Oct 19, 2010
Katana uses code overlays

Thank you, that's the word I was trying to remember. The JP Shinobi docs have a whole section on it.
 

Make a donation