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

查看:543
本文介绍了为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) A compiler generate real mode 16-bit x86 assembly
(2) An assembler assemble the generated assembly into object file
(3) A linker link object files and output executable (raw binary, COM, MZ, PE, ELF are fine)
(4) Standard library without invoking DOS service (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天全站免登陆