Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does porting between Linux and Windows work?

If a particular piece of software is made to be run on one platform and the programmer/company/whatever wants to port it to the other, what exactly is done? I mean, do they just rewrite linux or windows-specific references to the equivalent in the other? Or is an entire rewrite necessary?

Just trying to understand what makes it so cost-prohibitive that so many major vendors don't port their software to Linux (specifically thinking about Adobe)

Thanks

like image 975
Kefka Avatar asked Apr 18 '10 22:04

Kefka


People also ask

How hard is it to port a Windows game to Linux?

Is it quite difficult to port a game from Windows to Linux? It depends on how the game was written. If it was written using Windows API and DirectX directly it will be quite difficult and a lot of work.

Can Linux programs run on Windows?

To run a Linux program on Windows, you have these options: Run the program as-is on the Windows Subsystem for Linux (WSL). In WSL your program executes directly on the machine hardware, not in a virtual machine.

What is the best way to run Linux on Windows?

Perhaps the easiest way to use Linux on Windows is with WSL, AKA Windows Subsystem for Linux. WSL is a framework that Microsoft has created for Windows 10 and 11 that allows users to run everything from Ubuntu to OpenSUSE and virtually every other Linux OS right on the Windows desktop.


1 Answers

this is the point of a cross-platform toolkit like qt or gtk, they provide a platform-agnostic API, which delegates to whichever platform the program is compiled for.

some companies don't use such a toolkit, and write their own (for whatever reason - could well be optimisation-related), meaning they can't just recompile their code for another os.

like image 98
chris Avatar answered Sep 30 '22 03:09

chris