Ada Online Compiler

About the Ada compiler

Built for safety-critical systems. Compiled online. Run Ada code in your browser with no install and no signup — the editor, the input and the output share one screen. Ada is executed by a remote runtime: your code is submitted to it and the output is returned to this page.

Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.

A Ada example

This is the program the Ada editor opens with — run it as it is, then change it.

with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Student_Report is
   type Student_Array is array (Positive range <>) of Integer;
   Names : array (1..4) of String (1..8) := ("Alice   ", "Bob     ", "Charlie ", "Diana   ");
   Scores : Student_Array := (92, 87, 95, 88);
   Temp : Integer;
   Temp_Name : String (1..8);
   Total : Integer := 0;
   Average : Float;
begin
   Put_Line("Student Rankings:");
   Put_Line("------------------------");
   -- Sort by score (bubble sort)
   for I in Scores'First .. Scores'Last - 1 loop
      for J in Scores'First .. Scores'Last - I loop
         if Scores(J) < Scores(J+1) then
            Temp := Scores(J);
            Scores(J) := Scores(J+1);
            Scores(J+1) := Temp;
            Temp_Name := Names(J);
            Names(J) := Names(J+1);
            Names(J+1) := Temp_Name;

The editor opens with the full program.

More Systems & Low-Level compilers

Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.