Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 08-22-07   #1 (permalink)
4.0ghz
 
SoaDMTGguy's Avatar
 
intel nvidia

Join Date: Mar 2005
Location: Nottingham PA
Posts: 4,929

Rep: 306 SoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven memberSoaDMTGguy is a proven member
Unique Rep: 227
FAQs Submitted: 2
Folding Team Rank: 1267
Hardware Reviews: 3
Trader Rating: 15
Default Port a program to another OS?

What is required to port a program to another operating system then the one it was written for? I am asking for information, so please dont say stuff like "its to hard, dont bother" or anything like that, I just want to know how its done, what needs to be changed, etc.
__________________
Quote:
Originally Posted by PaulTa View Post
I'm like Obi wan. I just pop in and out, offer vague comments and advice, and then tell you to use the force.

System: Teh MacBook!
CPU
Intel Core 2 Duo T7500 2.2 GHz
Motherboard
Apple MacBook Pro Stock Motherboard
Memory
4 GB (2x 2 GB) G.Skill DDR2 667 MHz DDR2
Graphics Card
nVidia GeForce Go 8600 GT 128 MB
Hard Drive
120 GB Fujitsu SATA150
Sound Card
Intel Sata Rosea HD Audio
Power Supply
Apple Stock Power Adapter
Case
15" Apple Aluminum MacBook Pro Case
CPU cooling
Stock
GPU cooling
Stock
OS
OS X 10.5 Leopard / Windows XP Pro / Fedora 8
Monitor
15" Apple LED Backlit MacBook Pro Matt Display
SoaDMTGguy is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 08-22-07   #2 (permalink)
<= Humanaut
 
FrankenPC's Avatar
 
intel nvidia

Join Date: Jun 2006
Location: Bay Area
Posts: 5,548

Rep: 372 FrankenPC is a proven memberFrankenPC is a proven memberFrankenPC is a proven memberFrankenPC is a proven member
Unique Rep: 243
FAQs Submitted: 1
Folding Team Rank: 60
Trader Rating: 4
Default

If you are using OS specific source code (like Visual Studio C#.NET code), then you need to take the source code (ascii text) and place it in a compiler environment for the new OS and carefully, line by line, modify the syntax and object calls to reflect what you have at hand. It's PAINFUL if it's code written using libraries specific to the source OS.

That's why JAVA was going to be so great. The source code was agnostic. As long as both OS's had the same JVM installed, in essence, it would work on both machines with little or no tweaking.
__________________
Previous Member of Team Owners - 1st to hit 200k and 250K

Previous member of Rough Riders - 1st to hit 300k!!!

Adios everyone! I've been proud to be a member of Owners and Riders.

System: TITAN-2
CPU
Q6600 G0 @ 3.4GHZ
Motherboard
ASUS P5K-E
Memory
4GB GSkill DDR2-1000 CAS5
Graphics Card
BFG 8800GT OC
Hard Drive
340GB Raptor SATA II
Sound Card
SB X-FI
Power Supply
SilverStone 750W 4-rail
Case
Lian Li Mid-tower
CPU cooling
OCZ Vindicator
GPU cooling
Stock
OS
Vista Home Premium 32bit
Monitor
Sceptre 24" LCD
FrankenPC is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 08-23-07   #3 (permalink)
Programmer
 
Join Date: Aug 2007
Posts: 12

Rep: 4 PassMark Unknown
Unique Rep: 4
Trader Rating: 0
Default

It depends on how the code was written to start with. Some programs, like the Apache web server, Perl and PHP interpreters were written from the start to be cross platform. So moving them to a different platform is easy.

Other programs (like many games) are very reliant on a particular operating system and other libraries, like DirectX. Porting these applications can be a huge amount of work.

Programs written scripting languages (like PHP) are trivial to move between Windows and Linux. Programs written in standard C++ using only the standard C libraries are fairly easy to port. But programs that make heavy use of the operating systems API and graphics can be very difficult to move.
PassMark is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 03:22 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.26969 seconds with 8 queries