LDC with MSP430

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Jun 23 02:13:34 PDT 2017

Hi Luís,

On 20 Jun 2017, at 16:29, Luís Marques via digitalmars-d-ldc wrote:
> BTW, what part of the D spec that isn't x86 specific clashes with 16 
> bit? Over the years I've seen people saying that D can't be used for 
> <32 bits, but I don't remember seeing anything in the spec that was 
> actually a problem. Now, if we were talking about weird type sizes 
> (9-bit chars...) that would be different.
> FYI: My first quick test compiled fine (to assembly; I don't think the 
> target supports object file generation; I have to finish assembly and 
> linking with the gnu tools, like I did for RISC-V).

It is more of a general statement of direction rather than any one thing 
that clashes with narrower architectures in particular (which, I agree, 
is confusing, but perhaps Walter didn't want to give the impression that 
DMD was on par with DMC when it comes to 16 bit DOS executables).

Two things that are not supported are non-power-of-two address widths 
and non-flat pointer types (segmented memory, or different near/far 
pointer types). Some of the library artefacts like the GC also won't 
work well with such a small memory space.


More information about the digitalmars-d-ldc mailing list