Add missing example files

This commit is contained in:
Nicolas Setton
2017-11-20 16:02:14 -05:00
parent 173e6d1f1c
commit ba93cf9e13
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- A simple Hello, World program
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Hello, World");
end Hello;

View File

@@ -0,0 +1,22 @@
project Main is
for Main use ("hello.adb");
package Compiler is
for Switches ("ada") use ("-g", "-gnatwa", "-gnatQ");
end Compiler;
package Builder is
for Switches ("ada") use ("-g", "-O0");
for Global_Compilation_Switches ("Ada") use
("-gnateT=/export/work/setton/src/ANCR/src/code_examples_server/resources/example/hello_world/tdf");
end Builder;
for Runtime ("Ada") use "ravenscar-sfp-stm32f4";
for Target use "arm-eabi";
package Emulator is
for Board use "STM32F4";
end Emulator;
end Main;