Commit c4e09c3f by Arnaud Charlet Committed by Arnaud Charlet

* gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.

From-SVN: r160101
parent 9cc54940
2010-06-01 Arnaud Charlet <charlet@adacore.com>
* gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
2010-05-30 Eric Botcazou <ebotcazou@adacore.com> 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
......
...@@ -23326,10 +23326,23 @@ Verbose mode: generate version information. ...@@ -23326,10 +23326,23 @@ Verbose mode: generate version information.
@findex binding @findex binding
@noindent @noindent
GNAT now comes with a new experimental binding generator for C and C++ GNAT now comes with a binding generator for C and C++ headers which is
headers which is intended to do 95% of the tedious work of generating intended to do 95% of the tedious work of generating Ada specs from C
Ada specs from C or C++ header files. Note that this still is a work in or C++ header files.
progress, not designed to generate 100% correct Ada specs.
Note that this capability is not intended to generate 100% correct Ada specs,
and will is some cases require manual adjustments, although it can often
be used out of the box in practice.
Some of the known limitations include:
@itemize @bullet
@item only very simple character constant macros are translated into Ada
constants. Function macros (macros with arguments) are partially translated
as comments, to be completed manually if needed.
@item some extensions (e.g. vector types) are not supported
@item pointers to pointers or complex structures are mapped to System.Address
@end itemize
The code generated is using the Ada 2005 syntax, which makes it The code generated is using the Ada 2005 syntax, which makes it
easier to interface with other languages than previous versions of Ada. easier to interface with other languages than previous versions of Ada.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment