#43946 - MrD - Sat May 28, 2005 3:48 pm
Hi folks,
I've been making a small GBA game in C without too many troubles (thanks to y'all =D) but recently I've been getting a lot of 'branch out of range' assembler errors when I try to compile.
This error happened before, so I looked it up and I replaced some of my switches with if's and else's and that seemed to chase it off. Unfortunately, it seems to have come back. ._.
I've looked this up on the search and it seems that this is because the ASM generated from the C is trying to jump across to far a code gap, or something suchly... Anybody got any suggestions on how I can try to eliminate this error?
The only way I've managed to fix it this last time is to disable -funroll-loops... which I don't really wanna do.
Edit - Recompilation with -mlong-calls results in a whole lot of 'invalid offset: value too big (0x00000403)' asm errors.
Edit 2 - Ladies and gentlemen, I'd like to reiterate: switch has some serious issues.
I found another one of the evil switches hiding around some lesser seen and assumed perfect code and blasted it to elses. now everything is back to fun!
I've been making a small GBA game in C without too many troubles (thanks to y'all =D) but recently I've been getting a lot of 'branch out of range' assembler errors when I try to compile.
This error happened before, so I looked it up and I replaced some of my switches with if's and else's and that seemed to chase it off. Unfortunately, it seems to have come back. ._.
I've looked this up on the search and it seems that this is because the ASM generated from the C is trying to jump across to far a code gap, or something suchly... Anybody got any suggestions on how I can try to eliminate this error?
The only way I've managed to fix it this last time is to disable -funroll-loops... which I don't really wanna do.
Edit - Recompilation with -mlong-calls results in a whole lot of 'invalid offset: value too big (0x00000403)' asm errors.
Edit 2 - Ladies and gentlemen, I'd like to reiterate: switch has some serious issues.
I found another one of the evil switches hiding around some lesser seen and assumed perfect code and blasted it to elses. now everything is back to fun!