windows - ghdl 不生成二进制文件 (windows)

标签 windows windows-7 compilation vhdl ghdl

几个月以来,我一直在使用 ghdl 进行学习。

现在我被迫使用 windows 并尝试在那里也使用 ghdl 和 gtkwave。

我的问题是:在我安装了 ghdl 之后,我试图编译一些代码。与:

ghdl -a aa.vhdl
ghdl -a bb.vhdl
...
ghdl -e test

与我在 Linux 中使用的相同。

但除了 work-obj93.cf 之外,它不会产生 ant 输出

如果我列出

ghdl -d  

一切似乎都很好。所有执行都没有任何错误消息,但我没有得到二进制文件或任何东西。

最佳答案

参见 ghdl 用户指南 3.1.2 Elaboration command

On GNU/Linux the elaboration command creates an executable containing the code of the VHDL sources, the elaboration code and simulation code to execute a design hierarchy. On Windows this command elaborates the design but does not generate anything.

...

The actual elaboration is performed at runtime.

On Windows this command can be skipped because it is also done by the run command.

另见 1.3 What is GHDL? :

The Windows(TM) version of GHDL is not based on GCC but on an internal code generator.

称为 mcode 的内部代码生成器版本将可执行代码生成为内存数组,但不生成目标文件。没有优化,也没有可能链接到外部目标代码。

关于windows - ghdl 不生成二进制文件 (windows),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16515818/

相关文章:

c - 为什么我们需要取消映射才能使PE文件有效?

windows - Windows 7 启动/引导的时间

compilation - NVIDIA CUDA SDK示例编译不支持的体系结构 'compute_20'

python - 为什么此 Python 子进程命令仅在 Windows 上的 shell=True 时有效?

java IntStream cannot use collect(Collectors.toList()),编译错误,为什么?

java - 如何使用 C++ 编译 .java 文件

javascript - 当用户通过设置运行键登录时在后台运行 Windows Node.js 脚本

python - 通过解压缩到站点包中安装 Numpy

windows - 在 Windows 上将 Rust 代码链接到 boringssl 时未解析的外部符号 AES_set_encrypt_key

python - 在 Windows 7 上安装 Python MySQLdb 时出错