Hi guys,
I seem to be having some issues with the gcc compiler. It doesn't like
complex structures for some reason. Here's an example of what I'm talking
about:
typedef struct{
float stuff;
int morestuff[5];
}MYSTUFF;
Now, if I try to use the above inside of a function:
void Trash()
{
CRAPOLA foo;
foo.morecrap = 5;
}
The code compiles, but it makes foo into a rom address (verified through the
debugger). Obviously the code doesn't work :). Now I know that if you
initialize a variable to a value (a global) or use static, it assigns the
variable to a rom address, but does the same thing happen with structs? It
seems that some structs work and others don't. Why?
I think I'll just go back to doing everything in assembly. :)
Hi guys, I seem to be having some issues with the gcc compiler. It doesn't like complex structures for some reason. Here's an example of what I'm talking ...
Xyrus
sfreeman@...
Oct 3, 2000 3:36 pm
Hello Xyrus, Tuesday, October 03, 2000, 5:39:19 PM, you wrote: X> Hi guys, X> I seem to be having some issues with the gcc compiler. It doesn't like X>...
anarko
anarko@...
Oct 3, 2000 3:40 pm
Um, eh? How could talking about a GBA compiler compiling something wrong be "way out of topic" on a GBA mailing list?...
Joshua Meeds
dreamer@...
Oct 3, 2000 3:46 pm
Maybe "way out of topic" == "i guess i don't know" :) Gtz Martijn http://www.twotribes.com ... From: "Joshua Meeds" <dreamer@...> To:...
Martijn Reuvers
martijn@...
Oct 3, 2000 3:48 pm
Hello Martijn, Tuesday, October 03, 2000, 5:48:14 PM, you wrote: MR> Maybe "way out of topic" == "i guess i don't know" :) that is true. i dont know. but i...
anarko
anarko@...
Oct 3, 2000 8:48 pm
i think your wrong there anarko, any question about C in here is fine with me, even programming questions, as long as the main focus is gba dev!, i think...
bobbyd
bobbyd@...
Oct 3, 2000 9:56 pm
... The question I asked was SPECIFIC to the ARM IMPLEMENTATION of gcc, gas, and ld for the GBA. Now to clarify..... Apparently there are issues declaring...
Xyrus
sfreeman@...
Oct 3, 2000 11:27 pm
HELLo, Sorry, if my questions will be lame, but I r ... and ... Is there exist a Win32 version of GCC ARM cross compiler and where I can d/l lastest binaries? ...
Vitaliy Oxyner
oxy2k@...
Oct 4, 2000 11:25 am
Hi foo should get declared on the stack, naybe your stack address is pointing to ROM instead of RAM? Regards Mat ... From: "Xyrus" <sfreeman@...> ...