3 ms·
I believe you want https://www.adacore.com/download https://www.adacore.com/download?
by Georgelemental 3y ago
I believe you want https://www.adacore.com/download https://www.adacore.com/download?
- Jtsummers 3y agoOr use Alire which wraps it up and manages multiple installations for you. This is my preferred way to install it, and it makes it easy to select compilers for cross-compilation (like for embedded targets) or to select particular compiler versions. https://alire.ada.dev/ https://alire.ada.dev/
- ArtixFox 3y agoIs Ada really as good as its touted to be? How good is the cross compilation, metaprogramming and FFI story?
- Jtsummers 3y agoFFI is described here: http://www.ada-auth.org/standards/22rm/html/RM-B.html http://www.ada-auth.org/standards/22rm/html/RM-B.html Here with some examples using gcc and gnat: https://gcc.gnu.org/onlinedocs/gnat_ugn/Mixed-Language-Programming.html https://gcc.gnu.org/onlinedocs/gnat_ugn/Mixed-Language-Progr... And finally here with the Adacore learning site: https://learn.adacore.com/courses/intro-to-ada/chapters/interfacing_with_c.html https://learn.adacore.com/courses/intro-to-ada/chapters/inte... I have limited experience with FFI in Ada, but never had any issues. Cross compilation is about the same as you'd expect from any mature language ecosystem. Metaprogramming, it does not have macros but it has a very good generics systems. Also for some reason your comment was dead (not flagged dead) so you may want to email the HN mods (see contact at the bottom of the page) about that.