Slashdot Mirror


Borland C++ For Linux

Ardax writes: "Looks like Borland is going to be releasing C++ for Linux, according to this InfoWorld article. We'll be seeing more details at LinuxWorld in NY next week. The article doesn't mention whether this will be C++ Builder for Linux, or 'just' a command line compiler. No matter what, this is a sweet thing. I wonder how it will compare to gcc? (I wonder if it will be able to compile the kernel? :-) ) If it's the whole C++ Builder shebang, I wonder if there will be an Open Edition? Borland's Community site has a blurb about this. There's no comments at the Borland community yet, but some interesting commentary might pop up there."

18 of 457 comments (clear)

  1. Market by SonCorn · · Score: 3, Insightful

    I could see there being a market for Borland if they released a nice GUI C++ development environment; but if it was just a command line program, can someone explain to me why they would use it instead of gcc. I just see no reason to pay for it if it is a command line program. I can't believe that they would offer some feature that gcc doesn't.

    --
    What good is a used up world, and how could it be worth having? --Sting
    1. Re:Market by qurob · · Score: 4, Insightful


      can someone explain to me why they would use it instead of gcc

      On many UNIX workstations, GCC makes slower/much slower code than the system vendor's compiler.

      Many people argued the speed/size benefits of Watcom's DOS compilers compared to DJGPP, the (DOS port GCC)

    2. Re:Market by SpinyNorman · · Score: 3, Insightful

      The same is true of PCs too. gcc doesn't come close to Intel's C++ compiler in terms of optimization or features (e.g. SSE/MMX code generation and vectorization). Unfortunately Intel's compiler is pretty expensive, but maybe Borland's will be more reasonable.

      The only thing (not a bad thing, mind you) that gcc has going for it is that it's free... it's hardly the compiler of choice if you really want to optimize your code.

  2. Oh man... by pb · · Score: 5, Insightful

    Borland has always put out wonderful tools, and really worked hard on making their compilers optimized on their platforms, but I think they've missed the boat here. This is most likely for easy porting of other applications written with Borland tools to Linux, because Linux already has a solid toolchain of its own. Regardless, I hope they get back on track.

    What I miss most is the old text-based Borland IDE. That was the most productive development environment ever. RHIDE is close, but wasn't stable on Linux when last I checked.

    --
    pb Reply or e-mail; don't vaguely moderate.
    1. Re:Oh man... by robbyjo · · Score: 4, Insightful

      I think that Borland is trying to make its fan "feels like home", creating the "illusion" of being "cross platform". Thus, developers seeking to embrace Linux but reluctant to lose their Windows market can easily be lured in. When Linux gets stronger, Borland already has had a real good head start.

      BTW, old text-based Borland IDE can be "simulated" using Twilight scheme.

      --

      --
      Error 500: Internal sig error
    2. Re:Oh man... by ipfwadm · · Score: 5, Insightful

      What, we can't use another compiler (which may or may not be better than gcc) and possibly an IDE?

      Us: "We need more companies to release products for Linux!"
      Borland: "OK, we'll release our C++ development environment!"
      Us: "No, not you, we don't need your product, we've already got that."

      Even if you never use it, it helps raise the visibility of the Linux platform when big-name companies like Borland are releasing Linux products.

    3. Re:Oh man... by pb · · Score: 5, Insightful

      I agree that there's nothing wrong with having more tools out there. However, I sincerely doubt that many Linux users would pay to install a third-party C++ compiler suite when they already have the standard C++ compiler for Unix (g++) free and already bundled with the system. This fact alone significantly narrows Borland's potential audience on Linux.

      Factors that might change this:

      (1) Borland releases it free of charge or under some open source license; this is a possibility, but isn't clearly stated in the article--perhaps the command-line compiler will be available free of charge, which would encourage many Linux enthusiasts to try it out.

      (2) Borland's C++ compiler supports advanced features not in gcc, such as compatibility with Borland's existing C++ compiler for Windows, better support for templates, better optimization, you name it. I already mentioned that this product might be aimed at people porting applications already written for Borland's compiler.

      However, the main problem I have with your point is your imaginary conversation; you neglected to date those statements. That first statement was made years ago! At the time, Linux was not very well known and companies were just starting to take notice of it. Borland took a survey and started work on Linux products. Then other companies actually wrote and marketed Linux versions of their products whilst Borland was busy having an identity crisis (remember Inprise?). This also caused Borland to lose credibility with some of their long-time supporters, who likely ported their applications to Linux with some other product (like g++) and forgot about Borland/Inprise. Only now are they waking up and marketing this product again!

      Therefore, I sincerely hope that this is a sign that the old Borland is back, and I hope they release a wonderful product, and gain massive support on Linux, and kick the gcc/g++ development crew into high gear to keep up. But understand if I fear the worst, especially from the vague tone of that Infoworld article, where they pretend that Linux doesn't already have a decent C++ compiler. :)

      --
      pb Reply or e-mail; don't vaguely moderate.
    4. Re:Oh man... by Arandir · · Score: 4, Insightful

      ...because Linux already has a solid toolchain of its own.

      I see the monopolists are out in force today. A language standard like ISO Standard C++ is a Good Thing. A single compiler that becomes a standard is a Bad Thing. When there is no room in Unix for an additional compiler, the end is near.

      If Borland C++ (the stand-alone compiler) won't be free then there probably won't be many users. It won't be shipped with your Redhat Subscription Service. But it will still have a place, namely with those that think choice is the first attribute of freedom. And if it is free, then expect it to be widely used.

      Gcc will finally have competition. It might actualy spur GNU into action to improve their compiler. Most of you guys here are too new to remember the history of gcc. Only a few years ago gcc *sucked* at C++. The unwritten by very official stance policy of GNU was that C++ sucked so don't bother. There was little standards conformance. But someone in the GNU crowd did have a clue, and forked the compiler. Before you knew it, egcs was being used more than gcc. Eventually the two merged back together, but I hope GNU learned its lesson.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
  3. This Is Very Good! by Lethyos · · Score: 4, Insightful

    Borland's IDEs (baring of licensing crap ;-) have always been exceptional. Current opensource IDEs are decent, but they are no where near the quality.

    It comes down to maturity. Borland has been making powerful IDEs for a very long time. Development for opensource IDEs however is a fairly new thing (KDEvelop is good, but it is still fairly unreliable and not as featured as I'd like).

    After years of tweaking, Borland's got it down pat.

    --
    Why bother.
  4. Resume Item by kenneth_martens · · Score: 4, Insightful

    It's not clear (at least from the sketchy information in the article) if there will be an Open Source/free version, but I hope so, and here's why: currently my university requires us to use Windows in our computer science classes, mainly because Microsoft gives us a lot of expensive software for free (if Microsoft makes it, students probably have access to it--Visual Studio 6, Visual SourceSafe, SQL Server, Windows XP Pro, ...)

    That leaves people like me--who prefer to run Linux instead of Windows--at a disadvantage. I have to have a dual boot system, and I have to reboot to Windows every time I need to hack out some code for a class. Now, if Borland releases their C++ for Linux and makes it free, I know I could convince a couple of my professors to ditch the Microsoft stuff and use teach the class using Linux and Borland. That would enable me--and the rest of the university--to gain some practical experience coding on the Linux platform, and not just on Windows. Don't get me wrong, there isn't anything wrong with knowing how to code using Windows and Microsoft Visual Studio (in fact it's probably a good resume item), but I'd like to get familiar with some alternatives before I enter the workforce.

    1. Re:Resume Item by Cuthalion · · Score: 3, Insightful

      You know, there's nothing stopping you from using GCC and whatever editor you like (RHIDE, emacs, whatever) under linux. If you absolutely must make it work under windows too, all the better - now you're learning how to write portable code. Even neverminding that, using GCC is much more practical linux experience than using Borland C++ will ever be, in that most everyone doing linux development will not drop everything and migrate to Borland's tools immediately.

      --
      Trees can't go dancing
      So do them a big favor
      Pretend dancing stinks!
  5. Re:They should open up their Windows products by Osty · · Score: 2, Insightful

    Quite a few people still buy Delphi. Delphi users moving to C++ often buy C++ Builder. Otherwise, most everybody else chooses Visual Studio. So, I could see a case made for opening C++ Builder, but not Delphi (which happens to fall under "their Windows products").

  6. GCC extensions by achurch · · Score: 3, Insightful

    The kernel . . . is writen in C with a ton of GNU extentions. So the kernel is really tied to gcc. (which actually makes it more protable because gcc runs on a ton of machines)

    Um, no. Using compiler-specific extensions does not make code more portable by any possible interpretation of the word. If it didn't use any extensions, then not only could GCC compile it, so could Intel's compiler, Sun's compiler, etc. That would be portable.

    While we're on the subject, though, it would be nice to see at least some of the GCC extensions make it into other compilers. I try to write code without them as much as possible, but in particular I've found the typeof() construct useful, as well as the ability to initialize arbitrary members of a union (yes, I know I could just turn them into structs, but that's a waste of memory). Does anyone know alternate ways of doing things like this in standard C, or whether the GCC folks are doing anything to try and get their extensions included in the standard?

  7. Linux is not only a x86 OS by chrysalis · · Score: 2, Insightful

    A really great thing with Linux (and NetBSD, and OpenBSD) is *portability* . These OS can run the same way on a variety of hardware.
    Something designed on Linux x86 can run on Linux PPC with almost no change.
    The master key to make it possible is GCC. Because GCC can compile (and even cross-compile) code for a lot of architectures.
    Projects using Borlanc C++ specific features will work on Intel Linux. Nowhere else. This is pity. An opensource Operating System should be open to everyone.


    --
    {{.sig}}
  8. Not necessarily.... by Micah · · Score: 5, Insightful

    Actually this was discussed on the borland.kylix.non-technical newsgroup a while ago. The aim is apparently to be able to compile ANY C/C++ Linux application, in fact the complete system, including the kernel. Thus it will need to emulate gcc's extensions.

    We'll see if this turns out or not. That's just what I recall reading in discussions.

    But if so it would be pretty sweet, assuming you're not a Free Software zealot (which I am, kind of, but I can see some coolness factor in this). If the pull it off, someone will be able to build an ENTIRE Linux distribution with their optimized compiler. Everything could run faster.

  9. Re:More than once compiler... Good? Bad? by SkepTech · · Score: 1, Insightful

    Having a new commonly used compiler for Linux would be a good thing. It would force GCC to better comply with the ANSI standards. As it stands, there are a number of 'minor' embrace-extend features of GCC that many coders aren't even aware of. Having to write their code to compile on multiple compilers shakes some of that kind of stuff out.

  10. What is beneficial? To Whom? by HiThere · · Score: 3, Insightful

    Borland is entering a tough market. The Linux system already comes with C++ compilers and IDEs. Perhaps not as good, but free (GPL). This makes any sale dubious. Their products may well be better, but how large a market is there for better products against already established free products?

    One place where they have a big edge is in dialog building. Kylix already builds dialogs under Linux, so they know how.

    Perhaps what their goal is, is to get people using their products on Linux to be cross-platform, but to make their pile selling compilers for the Windows versions? Sounds chancy to me, but it would let them sell the Linux system at around cost, and still make SOMETHING. I'm dubious about proprietary libraries, but I believe that the GPL (NOT LGPL!) version of the library is available at sourceforge. And that Borland holds sole rights, so they can license it commercially if you pay them.

    This means that you can use Borland libraries in GPL software without cost, but if you want to sell the product, Borland gets a share. (Sounds fair to me. Viable? I don't know.)

    Given this evaluation, past comments, etc., and what I expect is that this C product will be the C++ companion product to Kylix. And it will probably be available on the same basis.

    As to what they'll call it, companies are unpredictable, but what I think they should call it is:
    Kylix C++, a C++ environment for the Kylix family.
    Then they could follow it up with:
    Kylix Python, a Python environment for the Kylix family.
    Kylix Java, a Java environment for the Kylix family.
    etc.
    The kicker would be that all of the various pieces could work together in a relatively seamless way. (This takes a bit of work, but SuperCede Java did this between Java, C, and C++ on the PC side years ago. They finally got bought out by someone who raised the price to $10,000 per copy, but it worked pretty well when it was affordable.) And, of course, gcc has always worked this way.
    .

    --

    I think we've pushed this "anyone can grow up to be president" thing too far.
  11. Re:GCC 2.95 vs. Borland C++ 5.5 by Anonymous Coward · · Score: 0, Insightful

    If performance is heavily FP dependent, you may be seeing one compiler inserting FP trap instructions (which stall the pipeline). Some compilers default to catching all FP exceptions where they occur using traps (for consistency & IEEE compliance) while other compilers default to letting FP exceptions propagate to keep the pipeline moving (for speed). On some platforms (e.g. Alpha) I've seen a 2:1 difference in execution speed depending on the FP exception handling options you specify.