Docsity

Design Analysis And Algorithm, Schemes and Mind Maps of Design and Analysis of Algorithms

Toggle sidebar
bg1
Ada Programming
This book is intended for
professional readers.
Wikipedia has related
information at Ada
(programming language).
Welcome to the Ada Programming tutorial at Wikibooks. This is the ๏ฌrst Ada tutorial covering the
Ada๎ป†2005, 2012 and 2022 standards. If you are a beginner you will learn the latest standard โ€” if you
are a seasoned Ada user you can see what's new.
Current Development Stage for Ada Programming is "". At this
date, there are more than 600 pages in this book, which makes
Ada Programming one of the largest programming
wikibooks.[1]
But still there is always room for improvement โ€” do help us to
expand Ada Programming. Even beginners will ๏ฌnd areas to
participate.
Ada Programming is a featured book on Wikibooks because it contains substantial content, it is well-
formatted, and the Wikibooks community has decided to feature it on the main page or in other places.
Learn more
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Design Analysis And Algorithm and more Schemes and Mind Maps Design and Analysis of Algorithms in PDF only on Docsity!

Ada Programming

This book is intended for professional readers.

Wikipedia has related information at Ada (programming language).

Welcome to the Ada Programming tutorial at Wikibooks. This is the first Ada tutorial covering the Ada 2005, 2012 and 2022 standards. If you are a beginner you will learn the latest standard โ€” if you are a seasoned Ada user you can see what's new.

Current Development Stage for Ada Programming is "". At this date, there are more than 600 pages in this book, which makes Ada Programming one of the largest programming wikibooks.[1]

But still there is always room for improvement โ€” do help us to expand Ada Programming. Even beginners will find areas to participate.

Ada Programming is a featured book on Wikibooks because it contains substantial content, it is well- formatted, and the Wikibooks community has decided to feature it on the main page or in other places.Learn more

Augusta Ada King, Countess of Lovelace. Ada is a programming language suitable for all development needs. It has built-in features that directly support structured, object-oriented, generic, distributed and concurrent programming.

Ada is a good choice for Rapid Application Development, Extreme Programming (XP), and Free Software development.

Ada is named after Augusta Ada King-Noel, Countess of Lovelace.

Programming in the large

Ada puts unique emphasis on and provides strong support for, good software engineering practices that scale well to very large software systems (millions of lines of code, and very large development teams). The following language features are particularly relevant in this respect: An extremely strong, static and safe type system , which allows the programmer to construct powerful abstractions that reflect the real world, and allows the compiler to detect many logic faults before they become errors. Modularity , whereby the compiler directly manages the construction of very large software systems from sources. Information hiding ; the language separates interfaces from implementation, and provides fine- grained control over visibility.

About Ada

Wikipedia has related information at ISO 8652.

Wikipedia has related information at ISO 18009.

It should come as no surprise that Ada is heavily used in the aerospace, defence, medical, railroad, and nuclear industries.

The Language Reference Manual

The Ada Reference Manual (RM) is the official language definition. If you have a problem and no one else can help, you should read the RM (albeit often a bit cryptic for non-language lawyers). For this reason, all complete (not draft) pages in Ada Programming contain links to the appropriate pages in the RM.

This tutorial covers Ada Reference Manual โ€” ISO/IEC 8652:2023 Language and Standard Libraries , colloquially known as Ada 2022 or just Ada.

You can browse the complete Reference Manual at http://www.ada- auth.org/standards/22rm/html/RM-TOC.html

There are two companion documents: The Annotated Reference Manual (http://www.adaic.org/resources/add_content/standards/22aar m/html/AA-TTL.html) , an extended version of the RM aimed at compiler writers or other persons who want to know the fine details of the language. The Overview of Ada 2022 (http://www.ada-auth.org/standards/overview22.html) , an explanation of the features of this language edition. The Ada Information Clearinghouse (http://www.adaic.com/standards) also offers the older Ada 83, 95, 2005 and 2012 standards and companion documents.

The RM is a collective work under the control of Ada users. If you think you've found a problem in the RM, please report it to the Ada Conformity Assessment Authority (http://www.ada-auth.org/) (the Ada RM explains how to do this, see http://www.ada-auth.org/standards/22rm/html/RM-0- 2.html Introduction (58/1) ff). On this site, you can also see the list of "Ada Issues" raised by other people.

Ada Conformity Assessment Test Suite

Unlike other programming languages, Ada compilers are officially tested, and only those which pass this test are accepted, for military and commercial work. This means that all Ada compilers behave (almost) the same, so you do not

have to learn any dialects. The Ada standard does however allow compiler writers to include additional features and libraries that are not part of the standard.

Getting Started

Where to get a compiler, how to compile the source, all answered here: Basic Ada โ€” Read Me First! Finding and Installing Ada Building an Ada program Ada Development Environment

Language Features

These chapters look at the broader picture, introducing you to the main Ada features in a tutorial style. Expressions Control Structures Type System Constants Representation Clauses Strings Subprograms Packages Input Output Exceptions Generics Tasking Object Orientation Contract Based Programming

Programming in Ada

Delimiters Operators Attributes Aspects Pragmas Restrictions

Predefined Language Libraries

This section is a reference of the Ada Standard Library, which is extensive and well structured. It has these four root packages: Standard Ada Interfaces System Besides the Standard Library, compilers usually come with a built-in library. This chapter describes the GNAT library in particular. GNAT

External Libraries

This section is a reference of third-party Ada libraries which are not part of the compiler predefined environment but are freely available. Libraries Multi Purpose Container Libraries GUI Libraries Distributed Objects Database Web Programming Input/Output Platform specific

This book has a collection for ordering a printed copy (https:// en.wikibooks.org/w/index.php? title=Special:Book/order_collec tion/&colltitle=Wikibooks:Colle ctions/Ada_Programming) of this book for a fee. (edit (https://e n.wikibooks.org/w/index.php?title=Sp ecial:Collection/load_collection/&collt itle=Wikibooks:Collections/Ada_Progr amming)) (help)

A printable version of Ada Programming is available. 1, kb (edit it (https://en.wikibooks.org/ w/index.php?title=Ada_Programming/ All_Chapters&action=edit&preload=Te mplate%3APrint+version%2FPreload))

A PDF version of Ada Programming is available. 2, kb, 243 pages (info)

Programming Ada in Linux Programming Ada in Windows Programming Ada in Virtual Machines (Java, .NET)

Open-source portals Web Tutorials Web 2.

Printable Versions

The following are collection pages. All collection pages are comprised of groups of the already available pages. You can use them for printing or to gain a quick overview. Please note that those pages are partly very long. Tutorial Show HTML (1,839 kb) โ€” Download PDF (https://upload.wikim edia.org/wikipedia/commons/8/8d/Ada_Programming.pd f) (2,663 kb, 243 pages) Keywords Show HTML (470 kb) โ€” Download PDF (https://upload.wikime dia.org/wikipedia/commons/6/67/Ada_Programming_Keyw ords.pdf) (290 kb, 59 pages) Operators Show HTML (232 kb) โ€” Download PDF (https://upload.wikime dia.org/wikipedia/commons/6/65/Ada_Programming_Opera tors.pdf) (189 kb, 27 pages)

Source Code

The Source from the Book is available for download (https://so urceforge.net/project/showfiles.php?group_id=124904) and online browsing (http://wikibook-ada.sourceforge.net/html/ind ex.html). The latter allows "drill down", meaning that you can

External resources

Collections

Ada 2012 textbooks

John Barnes (2014). Programming in Ada 2012 (http://www.cambridge.org/gb/academic/subject s/computer-science/software-engineering-and-development/programming-ada-2012?format=P B). Cambridge University Press. ISBN 978-1-107-42481-4. Andrew T.Shvets (2020). Beginning Ada Programming: From Novice to Professional (https://www.a press.com/gp/book/9781484254271). Apress Media LLC, A Subsidiary of Springer Nature. ISBN 978-1-4842-5427-1.

Ada 2022 textbooks

John Barnes (2022). Programming in Ada 2012 with a Preview of Ada 2022 (https://www.cambrid ge.org/us/universitypress/subjects/computer-science/software-engineering-and-development/pr ogramming-ada-2012-preview-ada-2022-2nd-edition?format=PB&isbn=9781009181341). Cambridge University Press. ISBN 9781009181341 John Barnes (2024). Programming in Ada 2022 (https://www.cambridge.org/us/universitypress/s ubjects/computer-science/programming-languages-and-applied-logic/programming-ada-2022). Cambridge University Press. ISBN 9781009564779

Manuals and guides

Ada Quality & Style Guide: Guidelines for Professional Programmers (wikibook) Rationale for Ada 2005 (http://www.adaic.com/standards/05rat/html/Rat-TTL.html) , by John Barnes (2007) Ada 2005 Reference Manual (http://www.adaic.com/standards/05rm/html/RM-TTL.html) (2007) Ada Reference Card (https://github.com/bracke/AdaReferenceCard/releases) (in PDF format)

High-Integrity Software

ISO/IEC TR 15942:2000, Guide for the use of the Ada programming language in high integrity systems (http://www.dit.upm.es/~str/ork/documents/adahis.pdf). ISO Freely Available Standards [1] (http://standards.iso.org/ittf/PubliclyAvailableStandards/) ISO/IEC TR 24718:2005, Guide for the use of the Ada Ravenscar Profile in high integrity systems (htt p://www.sigada.org/ada_letters/jun2004/ravenscar_article.pdf). ISO Freely Available Standards [2] (http://standards.iso.org/ittf/PubliclyAvailableStandards/) John Barnes (2003). High Integrity Software: The SPARK Approach to Safety and Security. Addison- Wesley. ISBN 0-321-13616-0.

Resources

Ada Information Clearinghouse (http://www.a daic.org/) โ€” News and resources comp.lang.ada (news://comp.lang.ada) (Web archive (https://usenet.ada-lang.io/com p.lang.ada/) , Google groups (https://groups. google.com/group/comp.lang.ada) ) โ€” International Usenet newsgroup ada-lang.io (https://ada-lang.io) โ€” Community site and forum

Research and user groups

Journals: Ada-Letters (http://www.sigada.org/ada_le tters/) Ada User Journal (http://www.ada-europe. org/auj/) (archive (http://www.ada-europe.org/ auj/archive/) ) International Conferences/Workshops: International Real-Time Ada Workshop (IRTAW) (http://portal.acm.org/browse_d l.cfm?linked=1&part=series&idx=SERIES 76&coll=portal&dl=ACM) [IRTAW 15 (http:// www.ctr.unican.es/irtaw-15/cfp.html) ] ACM SIGAda international conference on Ada (http://portal.acm.org/toc.cfm?id=SE RIES332) [HILT 2012 (http://www.sigada.org/c onf/hilt2012/) ] 18th International Conference on Reliable Software Technologies โ€” Ada-Europe 2013 (http://www.ada-europe2013.org/)

17th International Conference on Reliable Software Technologies โ€” Ada-Europe 2012 (http://www.cister.isep.ipp.pt/ae 2/) Ada Connection 2011 (http://conferences. ncl.ac.uk/adaconnection2011/) (videos (http://www.adacore.com/home/ada_answers/lec tures/ada-connection-2011/) ) Ada "Developers Room" at FOSDEM (http s://archive.fosdem.org/2020/schedule/tr ack/ada/) (2020 (https://people.cs.kuleuven.b e/~dirk.craeynest/ada-belgium/events/20/ 1-fosdem.html) ) Local conferences: Ada-Belgium Conference (http://www.cs.k uleuven.ac.be/~dirk/ada-belgium/events/ local.html)

Associations

ACM SIGAda (http://www.acm.org/sigada/) โ€” ACM Special Interest Group on Ada Ada-Europe (http://www.ada-europe.org/) Ada Germany (http://www.ada-deutschland.d e/) Ada Spain (http://www.adaspain.org/) Ada-Belgium (http://www.cs.kuleuven.be/~dir k/ada-belgium/) Ada-France (http://www.ada-france.org/) Ada Switzerland (http://www.ada-switzerland. ch/)

External links