gpt4 book ai didi

forth - 可以在 Forth 中调用外部程序吗?

转载 作者:行者123 更新时间:2023-12-01 09:51:43 26 4
gpt4 key购买 nike

我正在通过 FICL 试验 Forth(.4th 文件扩展名)。是否可以调用外部程序的执行——比如我的“Hello, World!”程序集可执行文件 - 来自 .4th 源文件?

最佳答案

寻找类似 system 的词或 sh .我了解您正在使用 FICL,并且 ANS94 标准不要求此类词可用,但请检查您的本地文档以查看是否已添加任何扩展词以对系统进行炮击。

例如,在 Gforth 中,您有 system单词。以下是您将如何运行 hello当前工作目录下的可执行文件:

s" ./hello" system

更多信息(Gforth,具体): "passing commands to the operating system" . FICL 是可扩展的。 ;-) 祝你好运。

关于forth - 可以在 Forth 中调用外部程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24895205/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com