comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: A new universe of Ada
Date: Mon, 26 Sep 2022 11:30:10 +0200	[thread overview]
Message-ID: <tgrrf3$3n33m$1@dont-email.me> (raw)
In-Reply-To: <ab7f8f51-df86-4c46-8a14-cf90667f987fn@googlegroups.com>

On 2022-09-26 08:20, Rick Duley wrote:
> I want to get back to doing some Ada programming and I am suddenly confronted with a whole new new Adaverse.  I suppose that has something to do with my not even looking at an Ada program for some twenty years!  😖  I have Gnat Studio but I can't do anything at all unless I create a Project (whatever that is).  Even then, I can't write and run Hello_World unless I call it Main.  The concept of an IDE where I can step through a program checking changes in variable values as I go seems to have vanished.  In short, I am lost and I can't find any material to help me find my way.

Welcome back.

Unless your project uses multiple languages, or has a complicated build process, 
project files and gprbuild are unnecessary complications. You can use GNAT and 
GNAT Studio without them.

You can start GNAT Studio with a "default project". This lets you use it as an LSE.

You can compile and run your programs from the command line:

$ gnatmake -O2 -fstack-check hello_world.adb
$ ./hello_world

(This presumes some version of Unix. On Windows the second line would omit "./")

I have never found a debugger worth learning for well designed Ada programs, but 
you generally get an Ada-aware version of gdb along with GNAT. You have to 
specify extra switches to make your executable gdb friendly. You can probably 
debug a program with

$ gdb hello_World

To build, run, and debug a program from within GNAT Studio requires having a 
project file and understanding how GNAT Studio needs to be configured.

-- 
Jeff Carter
"Friends don't let friends program in C++"
Zalman Stern
114

  parent reply	other threads:[~2022-09-26  9:30 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26  6:20 A new universe of Ada Rick Duley
2022-09-26  6:45 ` Dmitry A. Kazakov
2022-09-26  7:00   ` Rick Duley
2022-09-26  7:11   ` Rick Duley
2022-09-26  7:41     ` Dmitry A. Kazakov
2022-09-28 18:28       ` Stephen Leake
2022-09-28 20:08         ` Dmitry A. Kazakov
2022-09-29  0:31           ` Gautier write-only address
2022-09-29  8:51         ` G.B.
2022-09-26  8:17     ` Simon Wright
2022-09-26  7:27   ` Simon Wright
2022-09-26  7:45     ` Dmitry A. Kazakov
2022-09-26  8:04       ` Rick Duley
2022-09-26  9:16         ` Dmitry A. Kazakov
2022-09-26  9:33           ` Rick Duley
2022-09-27  2:35           ` Rick Duley
2022-09-27  6:27             ` Dmitry A. Kazakov
2022-09-27  6:43             ` J-P. Rosen
2022-09-27  7:44               ` Rick Duley
2022-09-27 16:04             ` Björn Lundin
2022-09-28 17:40   ` Stephen Leake
2022-09-26  7:28 ` G.B.
2022-09-26  9:30 ` Jeffrey R.Carter [this message]
2022-09-26  9:34   ` Rick Duley
2022-09-26  9:37     ` Jeffrey R.Carter
2022-09-26 11:08       ` Maxim Reznik
2022-09-26 13:23         ` Kevin Chadwick
2022-09-26 18:12           ` Rene
2022-09-27 10:10           ` Roger Mc
2022-09-27 11:40             ` Roger Mc
2022-09-27 14:10             ` Simon Wright
2022-09-27 17:09               ` Roger Mc
2022-09-27 20:26                 ` Simon Wright
2022-09-28 12:14                   ` Roger Mc
2022-09-28 12:54                     ` Roger Mc
2022-09-28 18:34       ` Stephen Leake
2022-09-26 19:44 ` Marius Amado-Alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox