On Sun, Jan 24, 2021 at 1:56 AM Adam Nielsen via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> Hi all,
>
> Can anyone recommend a good C compiler for DOS?
>
> I thought there was only DJGPP and had issues with it when I last tried
> years ago (CWSDPMI), but looking at the FreeDOS build process it seems
> there are quite a number of workable C compilers for DOS now - so much
> so I am not sure which one to use!
> [...]



For what it's worth, I boot FreeDOS using QEMU on FreeDOS. I use OpenWatcom
C or the IA-16 GCC to compile my programs.

It's not as easy as DOSEMU, which actually creates a virtual C: drive from
a folder on your Linux $HOME. Instead, QEMU uses a virtual disk image. To
copy files, I just mount the QEMU image *qemu.img* from Linux, and mount it
someplace like */tmp/freedos*

guestmount -a *qemu.img* -m /dev/sda1 */tmp/freedos*


(the */dev/sda1* in this case tells guestmount to mount the first hard
drive partition)

Jim
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to