问题标签 [ada]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
7 回答
7054 浏览

c++ - 你能从 Ada 调用 C++ 函数吗?

你能从 Ada 调用 C++ 函数吗?

我想知道是否有一种方法可以直接执行此操作,而无需在 C 中进行实现并编写 C++ 包装器 & 和 Ada 包装器,例如,我想使用 c++ -> Ada 而不是 c++ -> c -> Ada。

0 投票
3 回答
726 浏览

ada - 为什么我在作业中弄错了这个项目?

我在作业中弄错了这个问题,我不知道为什么:

问题是:假设以下 Ada 程序是使用静态范围规则编译和执行的。在 Sub1 的程序中打印 X 的什么值?如果它在动态范围规则下怎么办?

我分别得到了 12 和 5,但这被标记为不正确。为什么?

0 投票
1 回答
179 浏览

dependencies - 在 Ada 中跟踪标头依赖项?

是否有工具可以跟踪/绘制 Ada 源代码中的标头依赖关系?

0 投票
4 回答
4528 浏览

ada - 如何在 Ada 中打印 Ada.Calendar.Time 变量?

需要知道如何在 Ada 中打印时间变量。我认为没有可移植的方式,因为 Time 是实现定义的。我已经看到 GNAT 下可用的 GNAT.Calendar.Formatting 包,我也对 VME 的 GHS 感兴趣。

0 投票
4 回答
4317 浏览

unit-testing - Ada 有什么好的单元测试框架吗?

我来自 C++ 背景,但我目前在 Ada 工作。在 C++ 世界中,我在编写每个类时都会对其进行单元测试……这似乎不是我们工作中的代码库的时尚。

我想开始为我创建的 Ada 包实施单元测试,是否有任何好的框架可以做到这一点?

0 投票
1 回答
2830 浏览

debugging - 如何在 GDB 中打印类型属性?

有没有办法从 GDB 中打印类型属性?
例如整数大小。

0 投票
2 回答
925 浏览

compiler-construction - 有谁知道如何或在哪里可以获得 VADS(Verdix Ada Development Studio)?

是的,我知道已经过时和过时了,你们可能会说的一切......但我只是需要......这件事发生了...... xD有什么线索吗?

0 投票
3 回答
1947 浏览

assembly - 艾达和装配

我正在考虑制作一个在裸 CPU (x86)、32 位保护模式和无操作系统上运行的硬件调试工具。由于时间限制,我不会全部在 x86 汇编中编写该工具。我喜欢 Ada 语言(但对它缺乏经验)并且认为在这个项目中使用 Ada 而不是 C 可能会很有趣。

使用 C 语言,可以使用内联汇编或调用用汇编编写的子程序来访问 BIOS 以进行键盘 I/O 或在屏幕上显示文本等基本操作。艾达有类似的能力吗?如果是这样,是否有人知道任何用于调用汇编方法并与它们链接的资源或教程?

0 投票
2 回答
1822 浏览

java - Java / Ada Big Endian 到 Linux Little Endian 问题

我是一名实习生,在我工作的地方继承了一个测试程序的问题。在搜索了一下之后,我可以找到一个与我完全相同的问题的人。在这里询问了一下之后,我发现发布此内容的人实际上仍然在这里工作,我也得到了他的帮助,但我认为他比我更深入地解释了这个问题。

在这个论坛上

对于那些不想阅读所有垃圾的人来说,这是它的要点。我们有一个在客户端运行的 GUI,它远程调用在 SPARC Unix 机器上运行的用 Ada 编写的测试应用程序。当大楼里的每个人都使用 Unix 机器做所有事情时,测试应用程序和 gui 工作得很好,但最近每个人都得到了更新更快的 linux x86 机器。

由于测试应用程序和 GUI 之间的 Big / Little Endian 不兼容,任何获得升级的人都无法运行测试应用程序。

现在,我的工作是弄清楚如何解决它。现在,我知道这里将有一种大型应用程序重写,我可能不得不重新定义 GUI 和测试应用程序如何相互通信,但是如果不完全反汇编程序,我怎么能做到这一点呢?

我自己提出的一些选项如下: Java RMI XML/RPC SOAP 数据烘焙?

请记住,我完全是网络编程的菜鸟,即使这些“解决方案”对我来说可能看起来有效,但我可能完全偏离了基础。请帮忙!

0 投票
3 回答
632 浏览

linux - Porting Unix ada app to Linux: Seg fault before program begins

I am an intern who was offered the task of porting a test application from Solaris to Red Hat. The application is written in Ada. It works just fine on the Unix side. I compiled it on the linux side, but now it is giving me a seg fault. I ran the debugger to see where the fault was and got this:

Warning: In non-Ada task, selecting an Ada task. => runtime tasking structures have not yet been initialized. <non-Ada task> with thread id 0b7fe46c0 process received signal "Segmentation fault" [11] task #1 stopped in _dl_allocate_tls at 0870b71b: mov edx, [edi] ;edx := [edi]

This seg fault happens before any calls are made or anything is initialized. I have been told that 'tasks' in ada get started before the rest of the program, and the problem could be with a task that is running.

But here is the kicker. This program just generates some code for another program to use. The OTHER program, when compiled under linux gives me the same kind of seg fault with the same kind of error message. This leads me to believe there might be some little tweak I can use to fix all of this, but I just don't have enough knowledge about Unix, Linux, and Ada to figure this one out all by myself.