Program Compatibility – OS That Can Run Anything? [closed]

I know that programs that are built on one OS won’t work on another, like a Windows program on a Linux distribution, and that there are programs that translate those system calls into system calls that the current OS can read (Wine for Linux). However would it theoretically be possible for there to be an OS that can understand the original system calls for programs built for the three main OSes (Windows, Linux, and Mac OS X)?

3

Windows NT was specifically designed to support multiple OS “personalities”. In fact, it originally wasn’t even intended to be a drop-in replacement for Windows and DOS, it was intended as a drop-in replacement for OS/2!

On Windows NT, applications aren’t written against the NT kernel, instead they are written against an OS personality, which in turn sits on top of the NT kernel. The original Windows NT shipped with 4 personalities: Win32/WinNT, DOS/Win16, OS/2, and Unix. This meant that you could not only run Windows NT applications, you could also run DOS applications, OS/2 applications, and even Unix applications unmodified. Nowadays, the OS/2 personality is removed, and the Unix personality is shipped separately.

Many Unix systems have similar facilities. In the beginning, when Linux was “the new kid on the block”, Linux needed to be able to run applications for other Unices if it wanted to be viable. During that time, support for adding foreign Unix applications was added to Linux, for example Intel developed iBCS, which allowed Linux systems to run all sorts of Unix applications (Solaris, 386BSD, FreeBSD, NetBSD, BSDI/386, SVR4 (Interactive, Unixware, USL, Dell etc.), SVR3 generic, SCO, SCO OpenServer 5, Wyse V/386, Xenix V/386, Xenix 286). There’s even the binfmt_misc module, which allows Linux to run applications written against arbitrary ABIs, by handing them off to a userspace program which interprets them.

Nowadays, it is the other way around: Linux is the established player, and the other Unices implement ABI compatibility with Linux. HP/UX, IBM AIX, FreeBSD, and many others all can run Linux applications unmodified.

It would be pretty easy for Apple to develop an OSX personality for Windows NT. It would also be possible for Microsoft to develop a version of Windows NT that runs as a personality on top of Mach alongside OSX. Whether those companies would do that is a totally different matter, though.

0

The thing is, MACs and PCs are fundamentally different hardware, in terms of CPU architecture. Compilers, for that matter, are nothing more than translation tools that rewrite your code from an abstract high-level programming language to low-level “words” (actual groups of bits) that the processor is reading and executing inside its logical hardware architecture. Under these circumstances, what you’re suggesting would be like having someone who doesn’t even know Latin is (was) a language, do complex mathematical operations using Latin numerals.

There are some approaches to the issue of cross-compatibility – for example, the Java Virtual Machine (JVM) is a piece of software that in itself depends on the architecture and OS of the machine on which it resides, but offers at the other end an “interface” to the CPU, hardware and system components, that is the same across all architectures, empowering Java applications to behave the same in various environments.

The issue with this, however, is that the translation layer offered by the JVM must use additional resources and do extra processing besides just the instructions in your application, in order to translate the instructions into the language that the native CPU understands – thus degrading the overall performance.

3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật