PDA

View Full Version : a online cross platform compiler?!



Masterx
01-30-2009, 09:07 PM
hello all, is there any think like that at all?
i mean i need way to compile my codes on different platforms, without installing the targeted OS. e.g Mac, how am i supposed to to it rather than emulating the machine to work with Mac for example.!?
it will be a great help, if an online compiler exists.!so that you feed the compiler by your source code and you will get what you want in a jiffy , without installing the oS.

Dino
01-30-2009, 10:47 PM
i need way to compile my codes on different platforms, without installing the targeted OS. e.g Mac, how am i supposed to to it rather than emulating the machine to work with Mac for example.!?

http://www.sun.com/java/

(I am now putting on flame retardant pants....)

Masterx
01-31-2009, 01:22 AM
sorry i didnt mention the language itself .! well its C++! i dont think java can help in this case!

tabstop
01-31-2009, 01:30 AM
They make cross compilers, like say gcc. Somebody here was trying to set one up within the last couple weeks and you should be able to find the thread if you bother to look for it.

auralius
01-31-2009, 01:33 AM
try googling "online compiler"....
hope you find some...
;)

glo
01-31-2009, 02:35 AM
If you are looking for a portable compiler that will work on recent Windows machines, you could carry a usb stick with Msys + MinGW. It may only take around 150mb depending on what libraries you use.

Masterx
01-31-2009, 02:42 AM
hey guys dont get me wrong! im not looking for a portable compiler! i already have one!
im looking for a website that offers online compilers for diffrent platforms, so that one can visit the website and compile his codes as if he is on Mac Os X! so this will omit the need of installing the Os though!
i ve googled it already, but i just found the C#s online compiler! not C++'s!.

whiteflags
01-31-2009, 07:58 AM
I don't think compiling online will do the things that you want. You say you want to test your program on mac without installing it. Well, you would have to be realistic and use a virtual machine, or finding access to a mac, to do program testing. You can compile online, but you cannot link online. I've only seen Comeau's compiler even offer this anyway (and only as a try before you buy thing). Even in a perfect scenario, targeting a specific OS with an online compiler makes no sense.

Dino
01-31-2009, 08:12 AM
Do what I did.

Buy a Mac Pro ($5000 US) with 2GB ram and 500GB hard drive, add a new 1TB hard drive ($400), add install VMWare Fusion ($70), install XP and Vista (had licenses already) and any other operating systems you want, and then upgrade your core RAM to 10GB ($400) and you'll be good to go.

Masterx
01-31-2009, 09:09 AM
I don't think compiling online will do the things that you want. You say you want to test your program on mac without installing it. Well, you would have to be realistic and use a virtual machine, or finding access to a mac, to do program testing. You can compile online, but you cannot link online. I've only seen Comeau's compiler even offer this anyway (and only as a try before you buy thing). Even in a perfect scenario, targeting a specific OS with an online compiler makes no sense.
well, tanx, all i was thinking , was that , the website could just do the trick and give a compatible executable file that run on a targeted OS, then i would save that executable and would ask one of friends to test it on his machine!
thats just a really great feature that can be implemented really!., just think about that .
and about simulating( or emulating!?) mac osx on Vmware e.g. i dont have a Mac! and im not going to buy one ( for 5000$ )just to test a crappy newbish project of mine !

Do what I did.

Buy a Mac Pro ($5000 US) with 2GB ram and 500GB hard drive, add a new 1TB hard drive ($400), add install VMWare Fusion ($70), install XP and Vista (had licenses already) and any other operating systems you want, and then upgrade your core RAM to 10GB ($400) and you'll be good to go.

oH yeah? ! isnt there any trial version of Mac Os x out there to be downloaded by people like me for testing manners?

whiteflags
01-31-2009, 10:51 AM
well, tanx, all i was thinking , was that , the website could just do the trick and give a compatible executable file that run on a targeted OS, then i would save that executable and would ask one of friends to test it on his machine!
thats just a really great feature that can be implemented really!., just think about that .
and about simulating( or emulating!?) mac osx on Vmware e.g. i dont have a Mac! and im not going to buy one ( for 5000$ )just to test a crappy newbish project of mine !


oH yeah? ! isnt there any trial version of Mac Os x out there to be downloaded by people like me for testing manners?

Well unfortunately most of the decent virtual machine products on the market (such as VMware and Parallels) are for the mac. At some point, a mac system is a reasonable investment for most people anyway, since the mac does some things well... and I recommend it since you are interested in mac programming. You can emulate the unix environments on a mac as well if that is a step you want to take.

Installing multiple OSes (rather than just installing them on a virtual machine) involves a dual-boot set up. You're going to want to cruise the internet for (several!) guides and sources of information before you make that leap. It's something that I am not comfortable writing about here.

You don't have a willing friend who has a mac? He could do the build and beta test for you.

Even if the other suggestions are too much effort to expend on this program, then you just need to write more portable C++. Consider abstracting away the mac specific bits to a more portable interface... implement that interface for your OS now; test; and write it again on a mac later; test again.

Back again to online compiling, even if a web server compiles, links, and transfers the executable to you, the executable is written in the server's machine language, which is probably unhelpful. The server's OS probably isn't even a mac, and there are other factors toward compatibility with your computer, if it is.

edit: your sig is frakking annoying. Could you make it so that it isn't one huge link? I click it accidentally, constantly.

cpjust
01-31-2009, 12:27 PM
I believe what he's asking is if there's a website with multiple platforms behind it like a Mac, Windows, Linux... and you just choose which architecture you want to build and it sends it to the appropriate machine to build it.

BTW, if Windows can now run on a Mac, shouldn't Mac OS also be able to run on a PC? They're both using x86/x64 right?

Also, I'm no compiler expert, but shouldn't it be possible to tell the compiler which architecture you want to build for and have it create the appropriate machine instructions for that platform?

Masterx
01-31-2009, 01:56 PM
Well unfortunately most of the decent virtual machine products on the market (such as VMware and Parallels) are for the mac. At some point, a mac system is a reasonable investment for most people anyway, since the mac does some things well... and I recommend it since you are interested in mac programming. You can emulate the unix environments on a mac as well if that is a step you want to take.

Installing multiple OSes (rather than just installing them on a virtual machine) involves a dual-boot set up. You're going to want to cruise the internet for (several!) guides and sources of information before you make that leap. It's something that I am not comfortable writing about here.

You don't have a willing friend who has a mac? He could do the build and beta test for you.

Even if the other suggestions are too much effort to expend on this program, then you just need to write more portable C++. Consider abstracting away the mac specific bits to a more portable interface... implement that interface for your OS now; test; and write it again on a mac later; test again.

Back again to online compiling, even if a web server compiles, links, and transfers the executable to you, the executable is written in the server's machine language, which is probably unhelpful. The server's OS probably isn't even a mac, and there are other factors toward compatibility with your computer, if it is.

edit: your sig is frakking annoying. Could you make it so that it isn't one huge link? I click it accidentally, constantly.
tanx, but if the server giving this service uses a mac or even emulator for the compiling and linking , that would make it right?
i have a friend! but he doesn't know about programming! and i'm not always in touch with him!

I believe what he's asking is if there's a website with multiple platforms behind it like a Mac, Windows, Linux... and you just choose which architecture you want to build and it sends it to the appropriate machine to build it.

BTW, if Windows can now run on a Mac, shouldn't Mac OS also be able to run on a PC? They're both using x86/x64 right?

Also, I'm no compiler expert, but shouldn't it be possible to tell the compiler which architecture you want to build for and have it create the appropriate machine instructions for that platform?
yeah,
i ve heard mac uses a different architecture rather thatn x86! if it was compatible with x86, what are those experts trying to make patch to make it run on a x86 PC) for?

whiteflags
01-31-2009, 01:58 PM
>> BTW, if Windows can now run on a Mac, shouldn't Mac OS also be able to run on a PC?
>> They're both using x86/x64 right?

I don't think it's 1:1.

Well, there are windows SDKs (http://developer.apple.com/sdk/) for mac programs, specifically ones that are ported to windows (such as QuickTime, iTunes and insignificant others) if that is what you mean. Being a skeptic, (and dumb) I am unsure how this relates to an end result for mac machines.

As your other question depends on this one I don't think anything I could say about that is meaningful.

psychopath
01-31-2009, 04:03 PM
BTW, if Windows can now run on a Mac, shouldn't Mac OS also be able to run on a PC? They're both using x86/x64 right?
Apple has mechinisms in place to prevent this, but if you know where to look and have the right patches, it can be done.

matsp
01-31-2009, 05:31 PM
Well unfortunately most of the decent virtual machine products on the market (such as VMware and Parallels) are for the mac. At some point, a mac system is a reasonable investment for most people anyway, since the mac does some things well... and I recommend it since you are interested in mac programming. You can emulate the unix environments on a mac as well if that is a step you want to take.


I disagree - VMWare is available for Linux, Windows and MacOS. Xen is another option, available for Linux, as is KVM and several others. To be able to run Xen with Windows as a guest-OS or KVM (at all) you need to have a processor with virtualization extension, such as AMD Socket F or AM2 or better - and Intel has very similar features in their processors of similar age.

I think Parallels is the ONLY virtualization software that is directly written for MacOS.

--
Mats