Questions tagged [gnat]

the GNU Ada compiler that comes as part of GCC (the GNU Compiler Collection including the GNU C Compiler). This tag includes all the various versions of GNAT: • GNAT Community Edition as released by AdaCore under GPL, • FSF as available with gcc distributions under GPL with Runtime Library Exception, and • GNAT Pro under proprietary license from AdaCore.

When under development through a USA Department of Defense contract, GNAT was originally an acronym for The GNU NYU Ada 9X Translator. GNAT is a Ada-language front end in the GNU Compiler Collection (GCC) that adorns the GCC C/C++ GIMPL semantic tree with Ada semantics. This GIMPLE semantic tree is then fed into the Register Transfer Language (RTL) backend of GCC to produce assembly language and/or machine code. Modern GNAT also has an LLVM backend as well.

424 questions
0
votes
0 answers

Gnat Pro Cross compiling

I am trying to use gnat pro as a cross compiler which use arm-eabi toolchain, but it cannot recognize any Ada packages!! Here is compilation result: 5:6 "ada.calendar" is not a predefined library unit 2:6 "ada.direct_io" is not a predefined…
0
votes
1 answer

How to make gnatmake tool compile RTS with project?

Is there a way to make gnatmake tool recompile the Ada's runtime library ("RTS") with the project I'm building file by file? I want to integrate my custom preprocessor that adds some features to ada source code and then compiles it with gcc. I'm…
user2102508
  • 1,009
  • 11
  • 23
0
votes
1 answer

gnatpp ceases working after a while

I'm on a mac, and I format my files with "gnatpp -rnb *.ads *adb" and it refuses to format some files. When I create a new file it works, and after a while, when the file grow/age (I couldn't find a pattern), it stops working. It spits the same…
nraynaud
  • 4,924
  • 7
  • 39
  • 54
0
votes
2 answers

Ada: can I have two different console windows?

I'm using GNAT 2014 for an Ada project and I have a simple (I hope) question. Can I have two "consoles" open at the same time? Let me explain why: my program outputs a lot of logging data to the console. What I would like would be to have two…
Master_T
  • 7,232
  • 11
  • 72
  • 144
0
votes
1 answer

How do you get the OpenGL ADA bindings to be recognized by GNAT Programming Studio and ADAGide?

I have been having some serious issues when it comes to use OpenGL and Ada, when it comes to learning how to access opengl calls in my ADA IDEs (which inclkudes GPS and ADAGide). Every time I attempt to compile or build a program, I get an error…
user3843131
0
votes
1 answer

Where to download AUnit 3 (for Ada)?

Where to download the AUnit (AFAIK, the latest version is 3) for Ada (particularly for GNAT-4.9)? I don't care whether this AUnit is licensed GPL or otherwise, because it is used only for my test program and the license of the test program does not…
porton
  • 5,214
  • 11
  • 47
  • 95
0
votes
1 answer

Is this a bug in GNAT that I should report

When I define my own type with a range that ends on 127, the compiler does not do upper bounds checking which allows the variable to wrap around and become negative below its defined limit. If I define the range as 126 then the proper exception is…
user315118
  • 181
  • 9
0
votes
1 answer

GPS for ADA - Plugin Improving Autocomplete

I'm looking in to a way to improve the autocomplete for GPS ADA (Version: GPS 6.0.1 with GNAT Pro 6.4.2). GPS autocomplete searches for matches which begin with the text you entered. I would like to match my string anywhere in the text. Currently…
Matt
  • 134
  • 15
0
votes
2 answers

gcc compiler lib file not found error

Please help me on the gcc compiler command gcc -c -ID:\pjtName\lib -c -fprofile-arcs -ftest-coverage D:\pjtName\source\tmp.ada I am trying to compile the tmp.ada with coverage. adb and ads files are located in D:\pjtName\source folder. and my lib…
Kumar
  • 237
  • 3
  • 9
0
votes
0 answers

Ada code instrumentation as GNAT compilation part?

I'm looking for a best way to integrate GNAT compiler with our custom code analysis/modification tools. We are using custom tools to perform different code metrics (like execution time, test coverage and etc) and even do some code obfuscation. So…
user2102508
  • 1,009
  • 11
  • 23
0
votes
1 answer

Is there a way to modify the .adt file directly?

Good day everyone, I am currently experimenting with the ASIS tool for ADA programs. I was wondering if it was possible to directly modify the abstract syntax tree (.adt) generated during compilation. If so, can someone point me in the right…
0
votes
1 answer

gnatbind: Cannot find: s-stalib.ali

I installed GNAT on my OS X 10.8.5 machine with the following steps: Download GNAT GPL from http://libre.adacore.com/download/configurations Install with ./doinstall, accepting all the default options Added /usr/local/gnat/bin to $PATH After…
Patrick Oscity
  • 53,604
  • 17
  • 144
  • 168
0
votes
0 answers

Handling single .ads files when building Ada with SCons

How do I adapt the scons-gnat and scons-ada builder to work with ads-files that don't have a corresponding .adb file? I ask because gnatbind asks for ali-files corresponding to .ads files when no corresponding .adb is present. I need this because in…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
1 answer

Autocompletion for GtkAda in GNAT GPS

I'm just getting started with Ada and GtkAda development using GNAT GPS (Gnat Programming Studio), and there is something that is frustrating me: autocompletion (ie: intellisense, or whatever you want to call it) only works for my code, but not for…
Master_T
  • 7,232
  • 11
  • 72
  • 144
0
votes
3 answers

Ada 2012 Multiway Tree, Create Root Node

I'm using the bounded version of the Multiway Tree. I can create my element type and instantiate a tree of my type but how do I create the root? I see several forms of Insert_Child. All my attempts at using Insert_Child fail because I use…
user1625344
  • 183
  • 1
  • 13