www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Cross-compile for ARM

reply Severin Teona <teona.severin9 gmail.com> writes:
Hello,

I am working with a NUCLEO_f429zi board, architecure ARMv7e-m and 
cortex-m4 CPU. I want to cross-compile D code for it from Ubuntu 
18.04 LTS Server. My current GCC version is 9.

How can I do that? What is the best cross-compiler for that?
Apr 08 2020
next sibling parent Timo Sintonen <t.sintonen luukku.com> writes:
On Wednesday, 8 April 2020 at 15:52:59 UTC, Severin Teona wrote:
 Hello,

 I am working with a NUCLEO_f429zi board, architecure ARMv7e-m 
 and cortex-m4 CPU. I want to cross-compile D code for it from 
 Ubuntu 18.04 LTS Server. My current GCC version is 9.

 How can I do that? What is the best cross-compiler for that?
Have a look at this thread: https://forum.dlang.org/thread/leuxesimcgscjjthpdhs forum.dlang.org and my repo at https://bitbucket.org/timosi/minlibd it has not been updated for a while but a version for gdc 9 is almost ready to publish
Apr 08 2020
prev sibling parent Johan <j j.nl> writes:
On Wednesday, 8 April 2020 at 15:52:59 UTC, Severin Teona wrote:
 Hello,

 I am working with a NUCLEO_f429zi board, architecure ARMv7e-m 
 and cortex-m4 CPU. I want to cross-compile D code for it from 
 Ubuntu 18.04 LTS Server. My current GCC version is 9.

 How can I do that? What is the best cross-compiler for that?
I'm heavily biased, but LDC is a cross-compiler by nature. Recent LDC releases can all cross-compile to ARM cpus. https://wiki.dlang.org/Cross-compiling_with_LDC https://wiki.dlang.org/Building_LDC_runtime_libraries Have a look here: https://github.com/JinShil/stm32f42_discovery_demo -Johan
Apr 08 2020