Trouble with Cortex-M "Hello World"

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 3 03:32:43 PDT 2015


"Jens Bauer"  wrote in message news:ckqcspcptqazbawdsgzj at forum.dlang.org... 

> Well, it seems I found the problem.
> 
> lexer.h, line 203 reads:

Yeah, I thought it might be that.

> Looking for union-"tricks", I also found ...
> stringtable.c:24 hash will not be the same value on Big Endian, 
> Mixed Endian and Little Endian machines.
> To hash correctly, read one byte at a time, then use bit-shifting 
> by 8 if another byte is to be read.

It doesn't matter for this hash table.


More information about the Digitalmars-d mailing list