a online cross platform compiler?!

This is a discussion on a online cross platform compiler?! within the A Brief History of Cprogramming.com forums, part of the Community Boards category; hello all, is there any think like that at all? i mean i need way to compile my codes on ...

  1. #1
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493

    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.
    Last edited by Masterx; 01-30-2009 at 08:21 PM. Reason: spell checking stuff
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

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


  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    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.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    sorry i didnt mention the language itself .! well its C++! i dont think java can help in this case!
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

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


  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    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.

  5. #5
    a newbie :p
    Join Date
    Aug 2008
    Location
    Zurich, Switzerland, Switzerland
    Posts
    90
    try googling "online compiler"....
    hope you find some...

  6. #6
    glo
    glo is offline
    Registered User
    Join Date
    May 2006
    Posts
    169
    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.

  7. #7
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    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!.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

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


  8. #8
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,667
    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.

  9. #9
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    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.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  10. #10
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    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?
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

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


  11. #11
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,667
    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.
    Last edited by whiteflags; 01-31-2009 at 10:14 AM.

  12. #12
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    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

  13. #13
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    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?
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

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


  14. #14
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,667
    >> 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.
    Last edited by whiteflags; 01-31-2009 at 01:02 PM.

  15. #15
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    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.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Cross platform multithreading
    By Bargi in forum C Programming
    Replies: 7
    Last Post: 10-19-2008, 07:26 AM
  3. Cross platform portability, about data types...
    By gaah in forum C++ Programming
    Replies: 9
    Last Post: 01-21-2005, 09:32 PM
  4. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 12:52 PM
  5. cross compiler
    By cozman in forum Linux Programming
    Replies: 2
    Last Post: 08-10-2001, 09:28 PM

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