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

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

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
including binary in your ROMS   Message List  
Reply | Forward Message #7153 of 15019 |
Hi all, I'm have been using devkitadvance gcc3.0.1 (C++) - and using the
info in the Devrs FAQ on including binary in your ROM (method 4) I've had no
problems. This method will define labels for the start, end and size of the
data you've included like so.

extern const usigned char _binary_outname_ext_start [ ];
extern const unsigned char _binary_outname_ext_end [ ];
extern unsigned long _binary_outname_ext_size;

All has been well, and then over the last couple of days I've converted some
stuff to plain ANSI C and I've now noticed that the compiler, when
generating accesses to these variables puts in an extra dereference, and so
returns 0 for values of size and for the data for that matter. Mappy will
disassemble like so

ldr r1, [PC,32] (#08005d8c)
ldr r1, [r1]

Whereas under C++ it'd generate just the one line

ldr r1, [PC,32] (#08005d8c)

Has anyone else had this problem and solved it? Am I missing something
simple here?
Any help would be great.

Cheers
Aaron







Mon Oct 1, 2001 12:21 pm

blitzed@...
Send Email Send Email

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

Hi all, I'm have been using devkitadvance gcc3.0.1 (C++) - and using the info in the Devrs FAQ on including binary in your ROM (method 4) I've had no problems....
Aaron Koolen
blitzed@...
Send Email
Oct 1, 2001
12:33 pm
Advanced

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