You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
Add missing example files
This commit is contained in:
8
resources/example/hello_world/hello.adb
Normal file
8
resources/example/hello_world/hello.adb
Normal 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;
|
||||
22
resources/example/hello_world/main.gpr
Normal file
22
resources/example/hello_world/main.gpr
Normal 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;
|
||||
Reference in New Issue
Block a user