寻找 x86 的 16 位 c 编译器 [英] Looking for 16-bit c compiler for x86

查看:28
本文介绍了寻找 x86 的 16 位 c 编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 uc/OS-II 从 DOS 移植到 x86(实模式).我需要:

I am working on porting uc/OS-II from DOS to x86 (real mode). I need:

  1. 生成实模式 16 位 x86 程序集的编译器

  1. A compiler to generate real mode 16-bit x86 assembly

将生成的程序集组装成目标文件的汇编器

An assembler to assemble the generated assembly into an object file

将目标文件链接在一起并输出可执行文件(原始二进制文件、COFF、PE 或ELF 格式很好)

A linker to link the object files together and output an executable (raw binary, COFF, PE, or ELF formats are fine)

一个不调用任何DOS服务的标准库(int 21h),只依赖BIOS服务.

A standard library without invoking any DOS services (int 21h), only depend on BIOS service.

我想知道是否有任何工具链可以做到这一点.

I am wondering whether there is any tool-chain could do it.

推荐答案

查看 FreeDOS 项目.他们有开发者工具,包括编译器、汇编器和链接器.不过,您可能必须修改标准库,以便它使用 BIOS 调用而不是 int 21h.

Check out the FreeDOS project. They have developer tools that include compilers, assemblers, and linkers. You'll probably have to modify the standard library, though, so that it uses BIOS calls rather than int 21h.

这篇关于寻找 x86 的 16 位 c 编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆