Thread: Compiler redistribution (Microsoft or Borland)

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    19

    Compiler redistribution (Microsoft or Borland)

    Would I be able to redistribute the Borland C/C++ compiler (their free 5.5 version) or the Microsoft C++ Visual Express compiler with my own software (which may be potentially commercial and close sourced for now), perhaps even for free?

    Also what is the name/filename of the MVSC++ Express compiler ? I hunted all over the place (internet and hard drive), and it seems completely anonymous.

    Are there any other fast (runtime fast) compilers which allow redistribution for relatively low cost or free of charge?
    Last edited by twinbee; 11-09-2010 at 08:07 PM.

  2. #2
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Not without paying MS or Borland royalties. You could redistribute GCC in binary and source for absolutely no charge and no risk of litigation.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    19
    GCC is GPL which means I would need to provide my own software as open source AFAIK.

    Borland have a confusing license for 5.5 which mentions "nothing to be redistributed, apart from certain 'redistrubatables' " which are defined elsewhere, but of course I don't have a clue where (what do you expect from legalize speak).

    Visual studio C++ on the other hand has a list of allowed redistributables, but since it doesn't indicate what the actual *compiler* file/s is/are, I have no idea of telling which is which.

    A bit of a mess really, but I'll take your word for it that I would need to pay them royalties. This may be an option depending on how the following perform:

    Digital Mars C/C++ compiler (this is proprietary too, but I have a better chance of getting through to someone I believe).

    TCC (Tiny C compiler): About the only LGPL C (though not C++) compiler around I think - worth a shot, and very fast at compiling, though less so with runtime code.

    Thanks for your help.
    Last edited by twinbee; 11-09-2010 at 08:35 PM.

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by twinbee View Post
    GCC is GPL which means I would need to provide my own software as open source AFAIK.
    Unless you are linking your software directly with gcc, this is not the case. Simply distributing a GPL component as part of a product does not force the entire product to be GPL. See the section on "bundling"
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by brewbuck View Post
    Unless you are linking your software directly with gcc, this is not the case. Simply distributing a GPL component as part of a product does not force the entire product to be GPL. See the section on "bundling"
    the microsoft platform SDK includes the C/C++ compiler, and is available for download without getting visual studio. not sure what the redistribution rules for it are though.

  6. #6
    Registered User
    Join Date
    Aug 2004
    Location
    San Diego, CA
    Posts
    313
    Quote Originally Posted by Elkvis View Post
    the microsoft platform SDK includes the C/C++ compiler, and is available for download without getting visual studio. not sure what the redistribution rules for it are though.
    I'll actually point you here: Download details: Microsoft Visual C++ 2010 Redistributable Package (x86)

    This is the Visual C++ 2010 redist package. It gives users the ability to run applications that require runtime components (libraries) when they don't have VC++2010 installed.

    At any rate - avoid GPL'd software like the plague. It's viral, and a bit of a social problem to boot. Just say no to GPL.

  7. #7
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    The MSVC RTL redist is only a DLL for libc and other functions linked in by MSVC.

    > At any rate - avoid GPL'd software like the plague. It's viral, and a bit of a social problem to boot. Just say no to GPL.
    What's wrong with the GPL? Although IMO BSD is better, AKAICT there's no reason to "avoid" it...

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Why exactly do you want to distribute an entire C++ compiler along with your software, or are you just talking about what Lithorien guessed, i.e., you want your users to have "the ability to run applications that require runtime components (libraries) when they don't have (the compiler) installed"?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    "clang" C Language Family Frontend for LLVM

    BSD-style license, can be used as a library, can even JIT C code.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    Registered User
    Join Date
    Apr 2008
    Posts
    19
    Unless you are linking your software directly with gcc, this is not the case. Simply distributing a GPL component as part of a product does not force the entire product to be GPL. See the section on "bundling"
    Heh, I get so confused regarding GPL - I'll have to read up further. Just to be clear, when you say 'linking', I presume you mean static linking to make a giant executable which has GCC stuff in it. I presume what's okay for me is to call the DLLs externally from my program (supply the DLLs separately).

    I've always been a bit confused how that would be advantageous for the GPL'd software (maybe they want end-users to see that the GPL'd software components are being used, but one can always put an acknowledgement of the GPL components in the credits of the program). Thanks for the clarification anyway. I might give GCC a go (though speed, and especially bloatedness (almost 100 meg for the compiler I think) could be an issue...).

    What's wrong with the GPL?
    I'm thinking the same now. If it doesn't enforce anything upon my own software (as long as I call the DLLs), then how is it an issue?

    Why exactly do you want to distribute an entire C++ compiler along with your software
    Letting my users program via something like Python (or even LuaJIT, possibly the fastest interpreted scripting out there according to the programming language shootout) is too slow for my purposes. I want my users' erm, 'scripts' to be lightning fast basically - as fast as my own code. And also it's less fuss implementation-wise I reckon.

    You say the word 'entire', but many compilers are very compact. For instance, TCC is a megabyte. Even DMC is only around 10 megabyte, which isn't *too* bad. GCC is approaching 100 meg I think, so yes, maybe *that's* pushing it a bit

    Thanks. Yeah I saw that too, and was the last one I was going to check out.
    Last edited by twinbee; 11-10-2010 at 09:08 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Where can i download the borland 3.1 compiler?
    By lox in forum C Programming
    Replies: 5
    Last Post: 07-11-2005, 04:04 AM
  2. Apps that act "differently" in XP SP2
    By Stan100 in forum Tech Board
    Replies: 6
    Last Post: 08-16-2004, 10:38 PM
  3. Setting up directx 8.0 sdk with Borland command-line compiler
    By ganonl in forum Windows Programming
    Replies: 0
    Last Post: 08-06-2003, 05:16 PM
  4. Canīt get glut work with mine BORLAND compiler
    By ripper079 in forum Game Programming
    Replies: 5
    Last Post: 12-19-2001, 09:15 AM
  5. Help with Borland c++ compiler!!!
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 11-27-2001, 10:53 PM