LDC and ARM 32 status?

Adrian Matoga via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Nov 8 23:39:30 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!

I would first try to compile with "-c -mtriple=arm-linux-eabi", 
then link the object(s) using GNU ld as you would with none-eabi 
target. You'll still need to provide at least empty stubs for 
some runtime features.


More information about the digitalmars-d-ldc mailing list