C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 01-30-2009, 09:07 PM   #1
C\C++ beginner
 
Masterx's Avatar
 
Join Date: Nov 2007
Location: Somewhere nearby,Who Cares?
Posts: 385
an online cross platform compiler?!

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.
__________________


Quote:
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning."
Rick Cook

Quote:
"...a computer is a stupid machine with the ability to do incredibly smart things, while
Quote:

computer programmers are smart people with the ability to do incredibly stupid things. They are,
in short, a perfect match.."
Bill Bryson


Last edited by Masterx; 01-30-2009 at 09:21 PM. Reason: spell checking stuff
Masterx is offline   Reply With Quote
Old 01-30-2009, 10:47 PM   #2
Jack of many languages
 
Dino's Avatar
 
Join Date: Nov 2007
Location: Katy, Texas
Posts: 2,071
Quote:
Originally Posted by Masterx View Post
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....)
__________________
Mac and Windows cross platform programmer. Ruby lover.
Dino is offline   Reply With Quote
Old 01-31-2009, 01:22 AM   #3
C\C++ beginner
 
Masterx's Avatar
 
Join Date: Nov 2007
Location: Somewhere nearby,Who Cares?
Posts: 385
sorry i didnt mention the language itself .! well its C++! i dont think java can help in this case!
__________________


Quote:
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning."
Rick Cook

Quote:
"...a computer is a stupid machine with the ability to do incredibly smart things, while
Quote:

computer programmers are smart people with the ability to do incredibly stupid things. They are,
in short, a perfect match.."
Bill Bryson

Masterx is offline   Reply With Quote
Old 01-31-2009, 01:30 AM   #4
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,841
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.
tabstop is offline   Reply With Quote
Old 01-31-2009, 01:33 AM   #5
a newbie :p
 
Join Date: Aug 2008
Location: indonesia
Posts: 76
try googling "online compiler"....
hope you find some...
__________________
from indonesia with love
auralius is offline   Reply With Quote
Old 01-31-2009, 02:35 AM   #6
glo
Registered User
 
Join Date: May 2006
Posts: 158
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.
glo is offline   Reply With Quote
Old 01-31-2009, 02:42 AM   #7
C\C++ beginner
 
Masterx's Avatar
 
Join Date: Nov 2007
Location: Somewhere nearby,Who Cares?
Posts: 385
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!.
__________________


Quote:
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning."
Rick Cook

Quote:
"...a computer is a stupid machine with the ability to do incredibly smart things, while
Quote:

computer programmers are smart people with the ability to do incredibly stupid things. They are,
in short, a perfect match.."
Bill Bryson

Masterx is offline   Reply With Quote
Old 01-31-2009, 07:58 AM   #8
MENTAL DETECTOR
 
whiteflags's Avatar
 
Join Date: Apr 2006
Location: United States
Posts: 3,295
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.
__________________
<Niggawatts> Writing is both mechanical and organic
<Niggawatts> It's like a cyborg dragon.
<Niggawatts> Writing is like a cyborg dragon.
whiteflags is offline   Reply With Quote
Old 01-31-2009, 08:12 AM   #9
Jack of many languages
 
Dino's Avatar
 
Join Date: Nov 2007
Location: Katy, Texas
Posts: 2,071
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.
__________________
Mac and Windows cross platform programmer. Ruby lover.
Dino is offline   Reply With Quote
Old 01-31-2009, 09:09 AM   #10
C\C++ beginner
 
Masterx's Avatar
 
Join Date: Nov 2007
Location: Somewhere nearby,Who Cares?
Posts: 385
Quote:
Originally Posted by whiteflags View Post
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 !
Quote:
Originally Posted by Dino View Post
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?
__________________


Quote:
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning."
Rick Cook

Quote:
"...a computer is a stupid machine with the ability to do incredibly smart things, while
Quote:

computer programmers are smart people with the ability to do incredibly stupid things. They are,
in short, a perfect match.."
Bill Bryson

Masterx is offline   Reply With Quote
Old 01-31-2009, 10:51 AM   #11
MENTAL DETECTOR
 
whiteflags's Avatar
 
Join Date: Apr 2006
Location: United States
Posts: 3,295
Quote:
Originally Posted by Masterx View Post
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.
__________________
<Niggawatts> Writing is both mechanical and organic
<Niggawatts> It's like a cyborg dragon.
<Niggawatts> Writing is like a cyborg dragon.

Last edited by whiteflags; 01-31-2009 at 11:14 AM.
whiteflags is offline   Reply With Quote
Old 01-31-2009, 12:27 PM   #12
and the hat of sweating
 
Join Date: Aug 2007
Location: Toronto, ON
Posts: 3,283
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?
__________________
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
cpjust is offline   Reply With Quote
Old 01-31-2009, 01:56 PM   #13
C\C++ beginner
 
Masterx's Avatar
 
Join Date: Nov 2007
Location: Somewhere nearby,Who Cares?
Posts: 385
Quote:
Originally Posted by whiteflags View Post
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!
Quote:
Originally Posted by cpjust View Post
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?
__________________


Quote:
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning."
Rick Cook

Quote:
"...a computer is a stupid machine with the ability to do incredibly smart things, while
Quote:

computer programmers are smart people with the ability to do incredibly stupid things. They are,
in short, a perfect match.."
Bill Bryson

Masterx is offline   Reply With Quote
Old 01-31-2009, 01:58 PM   #14
MENTAL DETECTOR
 
whiteflags's Avatar
 
Join Date: Apr 2006
Location: United States
Posts: 3,295
>> 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 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.
__________________
<Niggawatts> Writing is both mechanical and organic
<Niggawatts> It's like a cyborg dragon.
<Niggawatts> Writing is like a cyborg dragon.

Last edited by whiteflags; 01-31-2009 at 02:02 PM.
whiteflags is offline   Reply With Quote
Old 01-31-2009, 04:03 PM   #15
The Right Honourable
 
psychopath's Avatar
 
Join Date: Mar 2004
Location: Where circles begin.
Posts: 1,068
Quote:
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.
__________________
Memorial University of Newfoundland
Computer Science

Mac and OpenGL evangelist.
psychopath is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross platform multithreading Bargi C Programming 7 10-19-2008 07:26 AM
Cross platform portability, about data types... gaah C++ Programming 9 01-21-2005 10:32 PM
OpenScript2.0 Compiler jverkoey C++ Programming 3 10-30-2003 01:52 PM
Problem building Quake source Silvercord Game Programming 14 01-25-2003 10:01 PM
cross compiler cozman Linux Programming 2 08-10-2001 09:28 PM


All times are GMT -6. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22