Porting bash to windows


















Search related threads. Remove From My Forums. Asked by:. Archived Forums. Windows IoT. Sign in to vote. If the software was written for a single OS, a major rework is likely. The first step is to move absolutely all platform-specific code into a single area of the code base; this area should have little or no app-specific stuff. Then rewrite this isolated portion of the code for the new target OS.

Of course, this glosses over some extremely major implications. Under Mono, you can write a C Winforms program that works on both platforms. But to make that possible, the Mono team had to write their own Winforms library that essentially duplicates all of the functions of Winforms. So there is still no free lunch. Most software is portable to some extent. In the case of a C app - there will be a lot of ifdefs in the area, apart from path changes, etc.

It's always harder to maintain more codebases, but I think that the actual problem with porting applications has little to do with the technical side and a lot with business side. When you come to think about it - most open source software is multiplatform, no matter what language was used to implement it. This speaks for itself Disclaimer - I'm an avid supporter of Free and Open source software, I don't want to insult anybody - I just share my perspective on the topic.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How does porting between Linux and Windows work? Ask Question. Asked 11 years, 9 months ago. Active 5 years ago. Viewed 8k times. 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. Kefka Kefka 1, 2 2 gold badges 15 15 silver badges 25 25 bronze badges.

The answer is not always about cost. Add a comment. Active Oldest Votes. Steve 6, 2 2 gold badges 28 28 silver badges 50 50 bronze badges. It's much easier to write a cross-platform app if you consider that a design goal from the start, and I have three specific recommendations: Use Boost—oodles of handy things you might ordinarily get from platform-specific APIs and libraries, but by using Boost you get it cross-platform.

It's just adding a Windows-specific hosting environment for eBPF. The name of the game is to enable Windows developers to use eBPF programs, which will be source code compatible across Windows and Linux. Some of this will be done by using the Libbpf APIs. Of course, some eBPF code is very specific to Linux -- for example, if it uses Linux internal data structures.

But many other APIs and hooks will work across platforms. Now, this take on eBPF will share the wealth with Windows developers. Automate tasks and work smarter with this Microsoft Windows PowerShell bundle.

This new malware wants to create backdoors and targets Windows, Linux and macOS. Best laptop docking station Get well-connected. Microsoft's new-look Notepad comes to more Windows 11 users. Time for a Linux smartphone? You agree to receive updates, promotions, and alerts from ZDNet. You may unsubscribe at any time. By signing up, you agree to receive the selected newsletter s which you may unsubscribe from at any time.

You also agree to the Terms of Use and acknowledge the data collection and usage practices outlined in our Privacy Policy. What are you looking for? Preferences Community Newsletters Log Out. Vaughan-Nichols is a freelance writer.



0コメント

  • 1000 / 1000