在 ELKS 上使用 gcc

发布于 2024-08-20 18:31:19 字数 219 浏览 5 评论 0原文

我正在使用 PocketDOS 来模拟 ELKS,但我想使用 gccld 进行开发,我该怎么做?

I'm using PocketDOS to emulate ELKS, but I want to develop on it using gcc and ld, how can I do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

埖埖迣鎅 2024-08-27 18:31:19

乍一看,PocketDOS 似乎是基于 Intel 80186 仿真的。 80186 不支持 32 位保护模式,因此您甚至无法在其上运行 DJPP(这是 DOS 的 GCC 实现),因为这需要 DOS 扩展器 (DPMI) 来支持 32 位保护模式代码。 80186 本质上是集成了片上外设(例如中断和 DMA 控制器)的 8086。

我不认为你能够做到这一点。您将需要一个 16 位实模式 DOS 编译器。

From a quick look, it seems that PocketDOS is based on an Intel 80186 emulation. 80186 does not support 32 bit protected mode, so you won't even be able to run DJPP (which is a GCC implementation for DOS) on it since that requires a DOS extender (DPMI) to support 32bit protected mode code. An 80186 is essentially an 8086 with integrated on chip peripherals such as interrupt and DMA controllers.

I don't think you will be able to do this. You will need a 16bit real-mode DOS compiler.

唔猫 2024-08-27 18:31:19

直接,在 ELKS 下,你不能 - 因为据我所知(2023 年),没有编译器移植到 ELKS。

但是,您可以使用用于构建 ELKS 的开发工具(目前是 gcc-ia16 的分支;以前是 bcc),在另一台 32 位计算机(也可能在 64 位计算机上)上开发 ELKS 程序。

Directly, under ELKS, you can't - because there's no compiler ported to ELKS, as far as I'm aware (2023).

You can, however, develop programs for ELKS on another 32bit computer (and probably also on 64bit), using the dev tools used to build ELKS (presently fork of gcc-ia16; previously bcc).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文