Trouble with Cortex-M "Hello World"

Jens Bauer via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 07:26:15 PDT 2015


On Wednesday, 1 April 2015 at 13:59:34 UTC, Johannes Pfau wrote:
> Am Wed, 01 Apr 2015 12:56:22 +0000
> It could be an endianess issue somewhere in the code. I 
> debugged a misaligned-access bug in the frontend some time ago,
> bugs like these can result in the weirdest effects.

Indeed. I had some strange things happening until OpenOCD had the 
endian bugs squashed.
Endian problems does not necessarily have to mean crashes; it 
could just be some data's high an low bytes being swapped.

> It should compile on the cubieboard though. What exactly failed?

building GCC-4.9.2, so this is not an issue with D.
I'll probably be trying to make a build for the next 10 hours.

On my G5, however, I managed to get as complete a build as I 
could, but it involves compiling GCC 4 times total (!) - This 
gives me C/C++ and D - including libstdc++! -but it takes a 
couple of hours. ;)


More information about the Digitalmars-d mailing list