#104972 - Zephyr - Wed Oct 04, 2006 8:35 pm
I'm coding a game witch is a series of minigames.
I'd like all of those minigames' code to be stored in separate classes and I'd like not to run out of the memory.
I wonder where is the class members function code stored.
I it's in RAM, what should I do to tell gcc that it should put it in ROM and copy to RAM only when a new object is initiated, and free the space when the last object is destroyed (or is it done automatically).
If the functions are stored in ROM, is there an easy way to put some of them into EWRAM on initialisation of the first object and free the space after the last one is deleted?
I'd also like to know where are the normal functions placed if i dont use CODE_IN_EWRAM (ROM or are they still copied to RAM )
Do the keywords const and static change much?
If it's up to compiler I'm using Vham 2.4.2(arm-thumb-elf?) or DevKitARM R19b (not shure yet, ARM is more up-to-date, but Vham has Krawall already configured and it's own lib [I know it isn't that much, but I'm a beginner]).
I'd like all of those minigames' code to be stored in separate classes and I'd like not to run out of the memory.
I wonder where is the class members function code stored.
I it's in RAM, what should I do to tell gcc that it should put it in ROM and copy to RAM only when a new object is initiated, and free the space when the last object is destroyed (or is it done automatically).
If the functions are stored in ROM, is there an easy way to put some of them into EWRAM on initialisation of the first object and free the space after the last one is deleted?
I'd also like to know where are the normal functions placed if i dont use CODE_IN_EWRAM (ROM or are they still copied to RAM )
Do the keywords const and static change much?
If it's up to compiler I'm using Vham 2.4.2(arm-thumb-elf?) or DevKitARM R19b (not shure yet, ARM is more up-to-date, but Vham has Krawall already configured and it's own lib [I know it isn't that much, but I'm a beginner]).