#53440 - headspin - Thu Sep 08, 2005 1:18 pm
I have just updated to the latest DevKitARM and what previously compiled ok was...
Which is a large array to store WAV data. It used to compile and allocate at runtime. But now the new DevKitARM gives the following error:
If I change it to..
It works but adds around 500k to the ROM. I don't wan't that, I want it to be allocated at runtime like it used to.
BTW I've tried the following...
Both the above don't work either!
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game
Code: |
short EWRAM_BSS MemWav[MAXSMP]; |
Which is a large array to store WAV data. It used to compile and allocate at runtime. But now the new DevKitARM gives the following error:
Quote: |
c:\devkitpro\devkitarm\bin\..\lib\gcc\arm-elf\4.0.1\..\..\..\..\arm-elf\bin\ld.exe: address 0x8d7550 of build.elf section .sbss is not within region dtcm |
If I change it to..
Code: |
short VAR_IN_EXRAM MemWav[MAXSMP]; |
It works but adds around 500k to the ROM. I don't wan't that, I want it to be allocated at runtime like it used to.
BTW I've tried the following...
Code: |
short *MemWav;
MemWav = new short[MAXSMP]; // dosn't work MemWav = (short *) malloc(MAXSMP*sizeof(short)); // also dosn't work |
Both the above don't work either!
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game