News for hackers. Stuff that matters.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by kats on Wednesday September 16, 2020 @02:23AM (#24490060)
It requires a license to use GNAT for commercial projects, it's not free like many C/C++ tools.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by MrMorden on Wednesday September 16, 2020 @03:03AM (#24490245)
FSF GNAT (from your distribution) can be freely used. The GNAT that makes output GPL is the GPL GNAT edition downloaded from AdaCore's website.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by synack on Wednesday September 16, 2020 @07:50AM (#24491690)
Yep, the GNAT toolchain in Debian is actively maintained and they even build cross compilers for all of Debian's supported architectures. Combined with a Linux RT kernel, you can get some pretty good performance with only GPL code.

If you need to build for bare metal rather than Linux, things get a bit more complicated as GNAT requires some runtime code to setup things like systick and interrupts. You can use AdaCore's non-GPL runtime for non-commercial purposes, cortex-gnat-rts on top of FreeRTOS, or RTEMS, which natively supports Ada (though it's poorly documented).

I've also had some luck using crosstool-ng to build gcc toolchains with Ada support, but you'll still need to find or write a runtime library for bare metal.

Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by pjmlp on Wednesday September 16, 2020 @02:47AM (#24490163)
GCC only started to matter after UNIX vendors stop offering their SDKs for free actually.
Re:Airbus Chooses GNAT Pro Ada for Development of Unmanned A... by mhd on Wednesday September 16, 2020 @03:41AM (#24490414)
Uneven C++ support was a big issue, too.