Slashdot Mirror


OpenWatcom C++ Compiler Code Finally Released

udif writes: "Almost 2 years after it was originally announced, the first drop of the OpenWatcom C++ source code is here. 18,000 files, 78MB uncompressed source code (about 28MB compressed). It's version 0.80 and is incomplete, but most of the code is here."

32 comments

  1. ANSI Conformant? by jungd · · Score: 1

    How does it compare to gcc? kcc?
    export keyword?

    --
    /..sig file not found - permission denied.
    1. Re:ANSI Conformant? by WatcomGuru · · Score: 1

      Not ANSI conformant and export keyword not implemented. The only C++ compiler that is fully conformant and the first that supports export is Edison Design Group. See comp.lang.c++.moderated.

    2. Re:ANSI Conformant? by Anonymous Coward · · Score: 0
      aarrrgh!

      export, while being a C++ keyword, is a qualifier for the *object* file. The ELF object file format exports all symbols. Even if gcc supported export, it wouldn't do linux/ELF any good.

  2. OpenWatcom Questions by Anonymous Coward · · Score: 1, Interesting

    Can you compile and run a "Hello World" example in C or C++ yet?

    To build OpenWatcom, where do you get the OpenWatcom binaries?

    I heard at one time that Win-OS2, the Windows 3.1 that came with OS/2, was compiled using Watcom C because IBM considered Watcom C the faster compiler over their own and Microsoft's.

    Is anybody considering to "port" OpenWatcom to Linux?

    I noticed that the Windows and OS/2 compilers will be included. What about DOS and the DOS 32-bit Extender? Are the compilers for other platforms going to be included?

    Thanks for your answers,
    Daniel

    1. Re:OpenWatcom Questions by greenius · · Score: 1

      I would love to se the Watcom Debugger ported to Linux. If you like visual debuggers then I think Watcom hsa some features missing from Microsoft Visual Studio debugger.

      Rather than try to port the whole compiler to Linux it might be better to try and get Watcom and Gcc to work together for example by supporting the same object file formats.

      --
      I copied this sig from someone else (but where did they get it from?)
    2. Re:OpenWatcom Questions by Anonymous Coward · · Score: 0

      Hmm. I don't know what you mean..
      I use WDBG for work every day, and it's not *that* good. I really miss Borland (5.02!) debugger. It was _much_ better to debug code while in IDE.

      of course I'm not using WDBG to it's full extent, like over serial or things like that. Just simple go-go-go-enter-enter-inspect-escape things.
      Ah, shit, maybe I should just RTFM and find out that I've been missing many great things all this time (or that default installation .cfg misses most of functionality. It happens..)

    3. Re:OpenWatcom Questions by WatcomGuru · · Score: 1

      >> Can you compile and run a "Hello World" example in C or C++ yet? > To build OpenWatcom, where do you get the OpenWatcom binaries? > Is anybody considering to "port" OpenWatcom to Linux? > I noticed that the Windows and OS/2 compilers will be included. What about DOS and the DOS 32-bit Extender? > Are the compilers for other platforms going to be included? Yes and currently are.

    4. Re:OpenWatcom Questions by SWTP · · Score: 1

      I had hard that but most of the DOS based games for the PC were compiles using Watcom. Even Microsoft provided stuff to use Watcom under WinG and early DirectX.

      Hum. I asume you are refering to DOS4GW? Been a while but I think all it was was a link with the programmer doing calls through somthing but not really direct to DOS4GW.

      Aug for those days of "owning" the machine! Not this mess Microsoft created!

  3. Good news for TeraTerm users by Ashurbanipal · · Score: 3, Interesting

    Teraterm is an excellent open-source terminal emulator for Windows machines, which Robert O'Callahan has extended to incorporate SSH.

    The two problems with TeraTerm are:
    1) the weird license prohibits distributing any fixes to the core code (you can only distribute add-ons, which it supports). Luckily the core is not buggy, it's just got some areas where improvements could be made.
    2) it reportedly compiles best under Watcom C/C++, which was (until now) a rare beasty.

    1. Re:Good news for TeraTerm users by bconway · · Score: 2, Informative

      The BIGGER problem with Teraterm is that the SSH module doesn't and won't implement SSH v2. At this point SSH v1 is about as secure as telnet and should be disabled unless there is a reason that makes it absolutely necessary. I think it's safe to say that by now PuTTY, which progresses at an amazing rate, has claimed any market share that Termaterm had among the freeware SSH clients. It is an excellent tool.

      --
      Interested in open source engine management for your Subaru?
    2. Re:Good news for TeraTerm users by g4dget · · Score: 1
      I find the notion of a C++ program that "compiles best" under some compiler pretty odd. It may be true, but that's really only half the story.

      The full story is something like "Program X uses a bunch of non-standard compiler extensions that only Compiler Y implements" or "Program X uses some really obscure standards-compliant feature that only Compiler Y implements correctly" or "Program X relies on the implementation-specific memory layout implemented by Compiler Y".

      Since GNU C++ is quite good when it comes to standards compliance, I suspect that if a program "compiles best" under Watcom C++, it must be using some non-standard or unportable features. Does anybody know for sure?

    3. Re:Good news for TeraTerm users by 0x0d0a · · Score: 2

      Since GNU C++ is quite good when it comes to standards compliance

      I'm not sure how it compares to other compilers, but g++ certainly has its share of nonstandard extensions. No compiler is innocent when it comes to being extension-free. :-)

      void foo (int a) { int b[a]; }, for instance, really isn't kosher, but gcc/g++ allow it.

    4. Re:Good news for TeraTerm users by g4dget · · Score: 1

      Having extensions usually doesn't make a compiler non-compliant (GNU compilers usually also have a "strict ANSI mode"). Using extensions makes a program non-compliant.

    5. Re:Good news for TeraTerm users by larry+bagina · · Score: 1
      1. All compilers have bugs, quirks, and different optimizing algorithms. If your portable C++ code makes use of advanced template features, and only watcom will compile it or generate proper code, the fullstory may be that other compilers are not up to snuff.
      2. When the compiler competition was fiercer, compilers would recognize certain patterns and generate very aggressively optimized code so they'd look good in the benchmarks. If your code is similar to drystones, and Watcom produces the best drystone code, Watcom might generate the fastest code
      3. Most people develop with one compiler only. If I develop under Watcom, and did my debugging under watcom, it might work best under Watcom because of differences in the libraries, OSes and APIs used would cause problems
      4. GCC uses a 32-bit integer (most of the time). If you're developing for MSDOS, you might want to use 16-bit integers. Or maybe you need support for 64-bit integers or 128-bit integers. The C spec tells the relative sice of the types, not absolute, so different integer sizes, assumptions about packing of fields within a struct, byte alignment, endian issues, etc, may be non-portable, but they're not invalid if you are using a specific compiler and don't want 30 lines of #ifdefs for every possible compiler and architecture.
      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    6. Re:Good news for TeraTerm users by dvdeug · · Score: 2

      Teraterm [vector.co.jp] is an excellent open-source terminal emulator for Windows machines [...] 1) the weird license prohibits distributing any fixes to the core code

      Then it's not open-source, is it?

    7. Re:Good news for TeraTerm users by Anonymous Coward · · Score: 0

      if you want portability, you do not look at c++, and you can hardly look at c. Sure both languages are portable within their standards, but name one program of any size with a decent user interface that follows the standards and does not use other libs.

  4. Re:TeraTerm .vs. PuTTY by Ashurbanipal · · Score: 4, Informative

    Glad to hear PuTTY is doing well; I've always liked the attitude of the creator (as expressed by his commentary - I don't know the guy). But I don't think Teraterm has lost much ground yet.

    Teraterm is completely scriptable and has an embedded language for doing so. Putty doesn't. Teraterm has an extension interface (which is how SSH is supported) rather than being a code monolith (granted, with Teraterm's weird license and Putty's "fully open" source, this is not a big deal). Teraterm scripting is fairly well entrenched in many corporations and universities.

    And as for you comments in RE: SSH v1 security I think you need to do a little more research; O'Callahan's SSH extension specifically disables those portions of SSH v1 that are known to be crackable, and in any case to state "SSH v1 is about as secure as telnet" is grossly incorrect - you can pick up telnet passwords with a packet sniffer, while hacking SSH is quite challenging.

    Nonetheless I hope PuTTY continues to improve and eventually gets all the capabilities of TeraTerm. It's just not quite there yet.

  5. Re:A replacement for C++ by Anonymous Coward · · Score: 0

    A programmer has many tools in his tool box. http://dmoz.org/Computers/Programming/Languages and http://www.linuxlinks.com/Software/Programming/Lan guages/index.html and http://tunes.org/Review/Languages.html. A healthy garden has many vegatables and a craftsman has many tools so a programmer has many languages each suited for the coding task at hand. Learn Assembler, C, Java, Python, Pearl. C++ and Objective C are extensions of C. Learn Basic, Fortran, Cobal, ADA because your may encounter this code when porting a legacy app. C was developed at Bell Labs and JAVA was developed at SUN. The guy that wrote JAVA used C but could not get it to do what he wanted so he sat down and started coding. The language was Called Oak but was changed to JAVA. Stay away from Visual Basic, Microsoft C++ and Microsoft J++ they are full of extensions that break software when porting. You may want to look into C# as that is being ported to Linux and FreeBSD and would give you a way to port code between Windows Linux Unix but I would recommend you learn JAVA it has everything .NET has with the Security and Stability that is missing from .NET. Learn XHTML, XML, SGML, PHP and CGI for Web and stay away from Microsoft ASP.

  6. Re:A replacement for C++ by Anonymous Coward · · Score: 0
    > My research shows that this language is
    > one of the oldest languages in existance,
    > pre-dating even assembly!

    Hmm. You go to troll.edu ?

  7. Re:A replacement for C++ by Anonymous Coward · · Score: 0

    what an idiot

  8. Same shit, different thread. by Anonymous Coward · · Score: 0

    Cut and paste trolling. At least try to be original.

  9. Re:A replacement for C++ by jo42 · · Score: 1

    Congratulations on your expensive University-based education!! You seem to have mastered cowardice and copy/paste. What is next for you, entry into politics?

  10. Open Watcom is not Open Source. by L.+J.+Beauregard · · Score: 1
    The "Open" Watcom License restricts the use of the software as follows:

    2.1 You may use, reproduce, display, perform, modify and distribute Original Code, with or without Modifications, solely for Your internal research and development and/or Personal Use...

    where "Personal Use" is defined as:

    1.8 "Personal Use" means use of Covered Code by an individual solely for his or her personal, private and non-commercial purposes. An individual's use of Covered Code in his or her capacity as an officer, employee, member, independent contractor or agent of a corporation, business or organization (commercial or non-commercial) does not qualify as Personal Use.

    This is not an Open Source license. Sybase has misunderstood the meaning of the term. Yes, the submitted this to the OSI. May the OSI swiftly reject it.

    --
    Ooh, moderator points! Five more idjits go to Minus One Hell!
    Delendae sunt RIAA, MPAA et Windoze
    1. Re:Open Watcom is not Open Source. by greenius · · Score: 2, Informative
      Take a look at section 2.2 which covers non-personal use of the code: It looks like an open-source license to me. The section you quote above just removes the need to make source code available if you only use it for your own personal use.
      2.2 You may use, reproduce, display, perform, modify and Deploy Covered Code, provided that in each instance:

      (a) You must satisfy all the conditions of Section 2.1 with respect to the Source Code of the Covered Code;

      (b) You must duplicate, to the extent it does not already exist, the notice in Exhibit A in each file of the Source Code of all Your Modifications, and cause the modified files to carry prominent notices stating that You changed the files and the date of any change;

      (c) You must make Source Code of all Your Deployed Modifications publicly available under the terms of this License, including the license grants set forth in Section 3 below, for as long as you Deploy the Covered Code or twelve (12) months from the date of initial Deployment, whichever is longer. You should preferably distribute the Source Code of Your Deployed Modifications electronically (e.g. download from a web site);

      (d) if You Deploy Covered Code in object code, executable form only, You must include a prominent notice, in the code itself as well as in related documentation, stating that Source Code of the Covered Code is available under the terms of this License with information on how and where to obtain such Source Code; and

      (e) the object code form of the Covered Code may be distributed under Your own license agreement, provided that such license agreement contains terms no less protective of Sybase and each Contributor than the terms of this License, and stating that any provisions which differ from this License are offered by You alone and not by any other party.

      --
      I copied this sig from someone else (but where did they get it from?)
  11. Re:A replacement for C++ by SWTP · · Score: 1

    Sorry not flaming but hand assembly was first then a basic menomic assembler then FORTRAN, COBOL, BASIC { non visual } etc. Actualy C was developed back in the 70 to develop OS's instead of using assemblers then C++ is C with object concepts. C++ builds on C. VB is nice for quicky stuff as was Pascal to teach programming but C was writtent to create OS. I use VB for quick proof of concept stuff but its basicaly a lead sled on speed. VB concept of classes are a bit strange and in my mind is not really a Object languange. I rather use C++. Makes it much easer in spots to do stuff and is fast. Also if you write it as generic as you can you can transport it to other systems. Just watch out for "int" storage type and byte order. The main thing is learn as many languages as you can. The first, as with human languages beyond your normal one, is always the hardest. The main key is to think in it. Basicaly "BASIC" is a fair training language along with Pascal but has a lot of problems that weaken the language.

  12. Questions, questions by Anonymous Coward · · Score: 0

    Hi,
    I remember Watcom used to be a highly rated Windows compilor, but it's impossible to compete with VC++ because MS own the OS. So, it ultimately took the same root as the Borland compilor and now, the only thng left is VC++ (bad because now there is no competion).
    Has anyone used Watcom and how does it compare with VC++? Are there OO GUI libraries included, or is it just a bare bones compilor? Who are these ScitechSoft geezers - apparently they make a GUI libary for Watcom, but their website is currently "under construction"...

    1. Re:Questions, questions by Anonymous Coward · · Score: 0

      Try www.wxwindows.org.
      Scitechsoft, are the creators of the UNIVBE!

  13. Zortech C++? by meshko · · Score: 1

    Anyone remembers Zortech C++?
    It was my introduction to "open source" -- a great C++ compiler for DOS and windows 3.11 (maybe something else, I don't know). It was commercial of course, but shipped with full library sources. Maybe even compiler sources, I don't remember.
    Zortech was later aquired by Symatnec, I think....

    --
    I passed the Turing test.
    1. Re:Zortech C++? by Anonymous Coward · · Score: 0

      Now Symatec C++ is owned by Digitalmars (http://www.digitalmars.com)

    2. Re:Zortech C++? by bousozoku · · Score: 1

      The very stable Zortech compilers became the flaky Symantec C/C++ compilers, both for Macintosh and DOS/Windows.

      Symantec bought the Think C and Pascal compilers for the Macintosh earlier. These compilers had approximately 97 percent of the market, and Symantec lost total market share within about 3 years, to Metrowerks.

      --
      folding@home is good for you
  14. Re:A replacement for C++ by Anonymous Coward · · Score: 0

    Wow that straight buzz from an idiot. Thanks man.