3

特に組み込み分野で、どの CPU アーキテクチャが GNAT でサポートされているか知りたいです。gnu C コンパイラによってサポートされるすべてのターゲットは、Ada でも自動的にサポートされますか?

4

3 に答える 3

3

AdaCore のEmbedded Development Pageにリストがあります。

于 2012-05-11T20:56:36.010 に答える
1

Here is the factoid I wrote for the #Ada IRC channel on Freenode, it answers your question:

target x: In theory any platform can be targetted by an Ada compiler, in practice it depends on the target's hardware, i.e. if the target is embedded and very limited, there may only be a subset of Ada you can implement on said target. or: A good way to see if a particular target you are interested in can be targetted by Ada is to check to see if the target CPU is supported by a GCC backend, if it is, then you look to see if GNAT has a front end for it, it may only support a subset, it may not support it at all, in this case you have to do some work on the GNAT front end of the compiler to support this target. or: The list of GCC backends can be found at http://gcc.gnu.org/backends.html or: You can find out if GNAT supports a particular CPU/OS combination by looking in /gcc/ada/gcc-interface/Makefile.in by looking at the pattern matching lines that look like "ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)" this pattern matches the MIPS CPU with the Wind River Systems vxWorks operating system. or: See Secton 3.17 of the GCC Manual for hardware specific options, http://gcc.gnu.org/onlinedocs

I shall add the above link to AdaCore.

于 2012-05-21T11:44:22.947 に答える