Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS for 64 bits? (Users)

posted by Rugxulo Homepage, Usono, 29.10.2025, 01:04

> > > > Can pdos run all ancient MSDOS programs, like Turbo Pascal, Norton
> > > > Commander, etc?
> > >
> > > It can't run any of them. You need to recompile for the x64
> > > platform.
>
> > Ok.
> > I'll have some work to do, then!
>
> The chances of any of those things being C90-compliant are
> close to zero, so it's not just a recompile that is required.

Turbo Pascal is not open source. Heck, it's not even redistributable. Supposedly it was mostly written in assembly. Workaround? You could try p2c (written in C) which may compile. It's easy to recompile it with DJGPP or Openatcom, for instance. I used that to port Pascal P4 (bytecode compiler and interpreter) to C (using GCC [EMX, DJGPP] or OpenWatcom). P4 is public domain but is not "Turbo" compatible, only classic Pascal (large subset). If you really want TP features (that are supported by C90) that will depend on p2c or other means (or maybe use FPC or Modula-2 or Oberon somehow). Granted, p2c is GPL but its translated output is not.

There are several file managers that mimic the Norton Commander interface written in Turbo Pascal (e.g. Connect or DOS Navigator), but I'm not sure how much of that will compile with only C90 (and no explicit subdir support). Granted, originally CP/M and even OberonOS never had subdirs, so for some things you can live without it. (I think the Oberon-based Active Oberon/AOS2 OS had subdir support.)

Dunno, not to be too simplistic, but I'm just grateful anything works.

 

Complete thread:

Back to the forum
Board view  Mix view
22789 Postings in 2123 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum