#4861 - funkeejeffou - Sun Apr 13, 2003 12:26 pm
Hello everyone,
I am actually coding a 3d engine for GBA, and I've been trying lately to allocate my textures(which are arrays of indexed colors from the palette) in Vram, so i wont use any ewram or iram for it.
The problem is that i couldn't make it work, the lnkscript doesn't contain any vram info so i cant use the attribute command, and when i try in my header file :
gcc failes to compile.
So here I have two questions for the one who will save me :
1- Are transfers between data wich are both in vram are faster then transfer from ROM(or else...) to Vram?
2- How can i allocate an array which is a global variable at any adress of my choice?
Bonus : Where can i find a good, clear and complete doc about how does gcc works with the lnkscript and crtso, and where are the definitions of my c functiuns that i use (in wich include directory of the devkitadv)?
Thank you for reading this post...
I am actually coding a 3d engine for GBA, and I've been trying lately to allocate my textures(which are arrays of indexed colors from the palette) in Vram, so i wont use any ewram or iram for it.
The problem is that i couldn't make it work, the lnkscript doesn't contain any vram info so i cant use the attribute command, and when i try in my header file :
Code: |
unsigned short int *texture = (unsigned short int *)0x6014000;
texture[1000] = {0, 23, 45, ..............., 666}; |
gcc failes to compile.
So here I have two questions for the one who will save me :
1- Are transfers between data wich are both in vram are faster then transfer from ROM(or else...) to Vram?
2- How can i allocate an array which is a global variable at any adress of my choice?
Bonus : Where can i find a good, clear and complete doc about how does gcc works with the lnkscript and crtso, and where are the definitions of my c functiuns that i use (in wich include directory of the devkitadv)?
Thank you for reading this post...