Windows configuration for the ADA development environment

Source: Internet
Author: User
method One:1 Installation Cygwin download address: http://www.cygwin.com/installation, you should pay attention to the problem: in the second step to select "Install from the Internet", the third step to select the root directory (generally not necessary to change), The fourth step when you choose to put the downloaded files in that directory, because you want to install from the network, so the installer will install the program to download to this directory, and then install. The fifth step when the connection settings, if you do not use proxy server on the Internet to choose "Direct Connection", if the agent, you can choose IE settings Proxy Server, or the following fill in the proxy server address and port. The sixth step is to select the mirror server, I choose the time http://mirrors.xmission.com, of course, you can choose the other. Find a server to download when it's critical. In step seventh, select the installation package that you want to install. Select the "Curr" button and click the View button to find "Gcc-ada:ada complier" below the package list, "Skip" or "Keep" to the Back "Bin" in front of this line. list, and then select the optional box, and the following box may not be selected. Then click Next to do it. 2 Test Ada complier open Cygwin. The Hello program for ADA is as follows: With Ada.text_io;
Procedure Hello is
Begin
Ada.text_io. Put_Line ("Hello Ada");
End Hello;
Save the above program in a text document with a suffix named. adb. Compile command: gcc-c hello.adb gnatbind Hello gnatlink Hello then you can run the Hello program:./hello after compiling, you will find that there are many folders . O,.s,.aliThe compiled file for the suffix name. At compile time, GCC requires a file with a suffix name, gnatbind and gnatlink do not have suffix names. If you can see the "Hello Ada" character on the screen, your ADA development environment is already configured. Method Two:1 Install Gnat, you can install Gnat-3.15p-nt.exe download address: Http://adaicq.gro.clinux.org/gnat-3.15p-nt.exe 2 installation adagide download address: ftp:// Ftp.usafa.af.mil/pub/dfcs/carlisle/adagide/adagide-install.exe

US Mirror: http://adagide.martincarlisle.com European Mirror: ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/ ftp.usafa.af.mil/pub/dfcs/carlisle/adagide/

After installation, you can open the Adagide, and then create a new file, enter the above Hello program to test. Then press F2 to compile, F3 link, F4 run.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.