summaryrefslogtreecommitdiff
path: root/hurd/ada4hurd.mdwn
blob: 784ad7fdbb10d4ab8b8541e6bad7e692bbc193b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[[!meta copyright="Copyright © 2015 Free Software Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled
[[GNU Free Documentation License|/fdl]]."]]"""]]

# Ada4Hurd

## Introduction

Ada4Hurd provides tools and examples to ease Ada development in Hurd. It is at an early stage.

### ada2def

  * It is based on the [ASIS](http://libre.adacore.com/tools/gnat-gpl-edition/) standard
  * It analyse an Ada specification and generates some .defs file

### def2ada

  * Using [opentoken](http://stephe-leake.org/ada/opentoken.html) it analyse a .defs file
    * it can generate server skeleton
    * it can generate a client library for easy connection to the server

### xmladafs

  * Mainly a translation of xmlfs in Ada
    * write capabilities development is undergoing
    * use [xmlada](http://libre.adacore.com/tools/xmlada/)

### hello

  * Hello World example translated in Ada

### netfs_base

  * Mainly a dummy translator to understand netfs mechanisms
  * [[Some results of netfs experimentation|documentation/netfs_ada_results]]

## Where to find the code

  * Ada4Hurd is a [sourceforge](https://sourceforge.net/projects/ada4hurd/) based project
  * Mercurial is used as DVCS

    $ hg clone http://hg.code.sf.net/p/ada4hurd/code ada4hurd-code

## Build the code

  * Install the build dependencies as root

    $ apt-get install gnat libopentoken4-dev libxmlada5-dev libasis2014-dev

  * Build

    $ cd ada4hurd-code
    $ make

  * Play with xmladafs

    $ make trans_on