LDC and ARM 32 status?

Adrian Matoga via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Nov 8 23:45:14 PST 2016


On Saturday, 5 November 2016 at 15:09:15 UTC, Thomas Muldowney 
wrote:
> I've been trying to play with using LDC to compile to the 
> target `arm-none-eabi` or `thumb-none-eabi`.  While I can get 
> these targets to work with clang and my full llvm installation, 
> I can not get my LDC to properly target them.
>
> I played a fair deal with the target selector code in LDC.  
> Even trying to replace it largely with how clang does the 
> selection, but I almost always ended up at the error:
>
> Error: target 'thumb-none--eabi' is not yet supported
>
> Any pointers on a direction to continue digging, or if this is 
> just an area that's not ready yet, I'd love some info!
>
> Thanks!

Specifying only the architecture with "-march=thumb" or 
"-march=arm" should also work, see [1].
There are also some DConf presentations worth watching: [2] [3].

1. 
https://wiki.dlang.org/Minimal_semihosted_ARM_Cortex-M_"Hello_World"
2. http://dconf.org/2014/talks/ruppe.html
3. http://dconf.org/2014/talks/franklin.html




More information about the digitalmars-d-ldc mailing list