Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Compiler issues   Message List  
Reply | Forward Message #572 of 15019 |
Re: [gbadev] Compiler issues

Hi

foo should get declared on the stack, naybe your stack address is pointing
to ROM instead of RAM?

Regards

Mat

----- Original Message -----
From: "Xyrus" <sfreeman@...>
To: <gbadev@egroups.com>
Sent: Tuesday, October 03, 2000 4:39 PM
Subject: [gbadev] Compiler issues


> 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;
>
> typedef struct{
> MYSTUFF crap[2];
> float morecrap;
> }CRAPOLA;
>
>
> 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. :)
>
> Just Me,
> *SF
>
>
>
>
>
> unsubscribe: gbadev-unsubscribe@egroups.com
>
>
>




Tue Oct 3, 2000 4:18 pm

matth@...
Send Email Send Email

Forward
Message #572 of 15019 |
Expand Messages Author Sort by Date

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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...> ...
Mat
matth@...
Send Email
Oct 3, 2000
4:18 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help