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