TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Is there any modern compiled language with native compilers for 32-bit MS-DOS?

23 点作者 hansor将近 4 年前
Hi.<p>I heard a lot about NIM, V-LANG, ZIG, GO, RUST and other &quot;small, simple and portable - as C&quot; languages, which seems perfect fit for port to some old and resource starved systems.<p>Most of those languages leverage some GCC or LLVM&#x2F;Clang heavily - which is &quot;cheating&quot;, as they can&#x27;t provide small, portable, standalone compiler for 32-BIT DOS systems.<p>Which modern language have some native 16&#x2F;32bit MS-DOS compiler that can under MS-DOS environment with 2MB of RAM?<p>Except FreePascal and DJGPP.

9 条评论

madhadron将近 4 年前
The two places I would look are:<p>1. Oberon. It certainly qualifies as a modern language, it was designed for doing systems work, there is an MS-DOS compiler from ETHZ, and the language is single pass and designed by one of the masters to be easily and quickly compiled.<p>2. Forth. Something like Pygmy Forth can be a great development environment for constrained systems.
评论 #27321743 未加载
mrlonglong将近 4 年前
Use Watcom C&#x2F;C++, it&#x27;s freely available and fully supports protected mode extenders on MSDOS. It might be a bit dated but it works and generates pretty tight code.
评论 #27307908 未加载
helph67将近 4 年前
FreeBasic may qualify? <a href="https:&#x2F;&#x2F;www.freebasic.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.freebasic.net&#x2F;</a>
teleforce将近 4 年前
Have you tried D language? The D language author is the same author of Zortech C++, the first native C++ compiler for 16&#x2F;32 bit MS-DOS. Perhaps if you have any problems in compilation, he probably can help.<p>[1]<a href="http:&#x2F;&#x2F;www.edm2.com&#x2F;index.php&#x2F;Zortech_C%2B%2B" rel="nofollow">http:&#x2F;&#x2F;www.edm2.com&#x2F;index.php&#x2F;Zortech_C%2B%2B</a>
评论 #27321476 未加载
kinghajj将近 4 年前
Wait, there was a 32-bit version of MS-DOS? Or did the 16-bit version have some support for running 32-bit programs?
评论 #27306516 未加载
评论 #27307742 未加载
评论 #27306596 未加载
rurban将近 4 年前
Why should modern languages care about legacy targets? Some do care about modern small 8-32bit targets, sure. But DOS is only needed for UEFI, and there we have an ecosystem, modern languages don&#x27;t care about.<p>2MB RAM is a lot. Most of my devices are about 16K RAM, some much less. Lua, picoc, micropython and ulisp are common, but there are also much better modern, safer languages.
pjmlp将近 4 年前
Besides the existing comments, I would add Modula-2 to the mix, given how some modern languages are just redoing it with C like syntax.
评论 #27311061 未加载
ncmncm将近 4 年前
There is no point in actually running build tools on a target MS-DOS system. Modern compilers are perfectly capable of running on a practical development system while compiling to code for a different, target platform.<p>Then, you can use any fully modern language you can find a cross compiler toolchain for. C++ is the most widely supported, so offers the most choices.
评论 #27321551 未加载
Bostonian将近 4 年前
How do you define modern? For FORTRAN 77 there is BC-fortran, g77, and Microsoft Fortran 5.1.
评论 #27307929 未加载