Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6848875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:55:18+00:00 2026-05-27T00:55:18+00:00

I’m a computer science student. Currently we are learning the Ada programming language. The

  • 0

I’m a computer science student. Currently we are learning the Ada programming language. The compilation is very straightforward for now: gnatmake source.adb so I don’t have any idea of what gnatmake actually does or is (script? binary? something else?). Anyway, I was wondering in what language the compiler itself (also the parser, if written in a different language) was coded?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:55:19+00:00Added an answer on May 27, 2026 at 12:55 am

    Your typical compiler comes with two basic tools: The compiler and the linker.

    The comiler translates the language source code (text) into machine language object files (binaries). It will perhaps include some object relocation information, to help the linker.

    The linker takes multiple machine language object files and links them all together into one machine executable.

    You typically have to tell the compiler where to find all the extra files it needs to perform a compilation, and then you have to tell the linker the name of every file needed to link together your executable, including and system libraries you might use. This can get pretty dang complicated, which is where build tools like make come in.

    Ada is defined in such a way that there should always be some kind of librarian to keep track of this information for you. Thus to perform a complete build of your system, all you should have to do is ask the librarian to build your executable for you.

    The way Gnat handles this librarian functionality is that it assumes (unless told otherwise) that there’s a one-to-one correspondence between Ada unit (package) names and source and object file names. Thus if it needs the specification for X to complete a compile, it knows to go to X.ads to find the specification file. When its time to link, it knows it will find its object file in X.o. This means that if it needs a routine from package X to successfully link, it knows exactly how to do that for you, where a dumb linker would just fail and tell you the semi-encrypted name of the “symbol” it can’t find.

    So instead of typing out individual compile commands for every unit in your program like you’d have to do with C or C++, you can just use gnatmake to compile every unit the given executable name would need, and then link them together for you. One step, easy peasy.


    As for your last question, the Gnat Ada compiler is written almost entirely in Ada. It is fairly typical for compilers to be written in their own language, and compiled using themselves. This is called self-hosting.

    However, it is tied into GCC, so the parts that are common with GCC (the part that translates from tree format to target object code and the linker I believe) are written in C.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.