• C

Compiler

I was wondering what YOU people out there think I should get as
a ANSI C DOS compiler.  Perhaps Borland C++ 4.5 ?
KGJManAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

navigator010897Commented:
You're talking DOS?  well, Borland C++ 4.5 won't work out for you.  The newer 32bit borlands and Microsoft compilers are primarily for Windows95 + Win Console + Win3.1.  They really don't offer as much for the DOS world anymore.  

If you really want to do DOS programming, I'd get Watcom C/C++, I'm not sure what the latest release is.  I have 10.6 (there maybe a 10.7 or even an 11 at this point).  Here are the reasons why:

1) It compiles for:
      DOS
      Win31
      Win95
      WinNT
      DOS32
      OS/2

2) Most DOS programmers these days want to be able
   to access more then just 64K per memory chunk,
   (especially if working with graphics or
   creating games), Watcom comes with the Dos4G/w
   dos extender to allow you to write in FLAT
   mode.  In this mode, you can easily have a
   2 meg array if you want.  The DOS extender
   is also royalty free, so you can distribute it
   with your software.

3) It comes with a decent InfoBase CDROM for
   online tutorials.  

4) It has a DOS based debugger.

5) It makes managing projects fairly easy, and has
   a decent text editor for writing programs

Now, don't get me wrong, I also have MSVC/C++ 4.0, MSVC/C++ 1.52, Watcom 10.5, Watcom 10.6, Turbo C/C++ 3.0.  I go between my MSVC and Watcom for projects.  MSVC since I like doing my windows programming in there better, and most books on MFC are written with MSVC in mind, Watcom for DOS and some windows because it is just a faster compiler, and supports native dos mode instead of just Console mode.  (it does also work in console mode)

Any compiler you buy today, you'll notice that almost NO printed documentation comes with it (perhaps with exception of Symantics C/C++).  You are going to have to buy the printed material separately if you want it.  For MSVC, it comes as 6 volumes priced between 29 - 39 / book, for Watcom, there is a 12 volume set that is purchaseable through the makers of Watcom for ~125-135.  I have purchased the entire printed material for both Watcom and MSVC since I hate online docs for certain things like compiler config.  From what I've seen, Borland is pretty much the same way.  

The other problem with MSVC or Borland is that they don't come with royalty free DOS extenders like watcom.  (MSVC 1.5x which compiles Win3.1 and DOS apps, I am not sure what version of borland.)

But, chances are you are going to have more then one compiler to work with in the long run.  Everything depends on what you are going to spend the most time developing for, how much money you have to spend, and what the compiler offers.

But, for DOS, I still recommend Watcom, most if not all Borland code can be converted to watcom, and there are a bunch of 3rd party libraries available for watcom (ie: VATPro Sound Software, Fast Graph Graphics package, etc.)

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.