I have just compiled all the nds-examples using devkitARM release 32. There seems to be a compiler or linker bug in this release which is evident in at least one of the examples, namely Graphics/3D/nehe/lesson10b. Here's a section of the map file:
Code: Select all
.bss 0x0201ba70 0x24 nehe10b.o
0x0201ba70 sector1
0x0201ba78 texture
0x0201ba78 xpos
0x0201ba7c zpos
0x0201ba80 walkbias
As you can clearly see, two global ints have been assigned the same address, with the result that the texture of the object shown on the screen changes with the x-position, which is _not_ expected behavior. I suspect it might have something to do with the alignment of the preceding struct 'sector1'.
TIA
Anders Emil