From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: A new universe of Ada Date: Mon, 26 Sep 2022 11:30:10 +0200 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 26 Sep 2022 09:30:11 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="e5489c441a2e6dd27321db8f6c2c3e52"; logging-data="3902582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ztzpR5QNgyi+lqnSXrOeYsi7TSClhZZs=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cancel-Lock: sha1:J5UiledcgGe88T0RHc9aVmY7XiA= Content-Language: en-US In-Reply-To: Xref: reader01.eternal-september.org comp.lang.ada:64418 List-Id: 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