#26353 - funkeejeffou - Mon Sep 13, 2004 5:51 pm
Hi,
I haven't found any docs on how putting code and data in specific RAM, and even after suscribing to the DevKitARM group, the info were still not clear.
1)Do I have to create specific .C files for each group of functiuns defined in the same RAM or ROM?
2)Is the main functiun always in ROM?
3)How can I malloc dynamically in specifics RAM(IWRAM or EWRAM)?
4)www.devrs.com (although the FAQ is for DevkitAdv...) talks about #pragma long_calls, do I need this?
5)Do I only need putting the "-mlong-calls" in the CFLAGS for it to work, is there an LDFLAG to set too?
6)Is libgba absolutely necessary("gba_base.h")?
7)What is the correct syntax for declaring variables and arrays(declared globally) in RAM, I always get error using the attribute stuff?
I know this is a lot of questions :)
Thanks in advance !
Cheers, Jeff.
I haven't found any docs on how putting code and data in specific RAM, and even after suscribing to the DevKitARM group, the info were still not clear.
1)Do I have to create specific .C files for each group of functiuns defined in the same RAM or ROM?
2)Is the main functiun always in ROM?
3)How can I malloc dynamically in specifics RAM(IWRAM or EWRAM)?
4)www.devrs.com (although the FAQ is for DevkitAdv...) talks about #pragma long_calls, do I need this?
5)Do I only need putting the "-mlong-calls" in the CFLAGS for it to work, is there an LDFLAG to set too?
6)Is libgba absolutely necessary("gba_base.h")?
7)What is the correct syntax for declaring variables and arrays(declared globally) in RAM, I always get error using the attribute stuff?
I know this is a lot of questions :)
Thanks in advance !
Cheers, Jeff.