473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Best C++ compiler for DOS programs

I have to develop several large and complex C++ hardware test programs that
should work under DOS, most likely with 32-bit DOS extender. Development
workstation OS would be Microsoft XP. Quite some time ago I worked in DOS,
with Borland BC++ 4.1. I do not have it any more. Which compiler would you
recommend me now? Which ones support serious DOS program development?
Criterion should be number of available free library modules (graphic menu
system, mouse driver, I/O), ease of development, price (maybe free?),
current and future support. If compiled program can work in DOS window under
XP, at least for some early testing, that would be fine also.

So far I have found free Watcom, Digital Mars and DJGPP compilers

http://www.digitalmars.com/
http://www.openwatcom.org/index.php/Main_Page
http://www.delorie.com/djgpp/

Which one of these, or other free compilers, is best? What about commercial
compilers? Are they worth the money for DOS development? What would you
recommend me?

Steve.

Apr 22 '06
55 12719
do you know C++ compilers that generates Z80 binaries? :-)

Apr 27 '06 #51
nope. But if you get rid of your classes and start writing "extern" in
various locations, you can use http://tack.sourceforge.net/

I don't know though. Not familiar wiht z80.

-Benry
Diego Martins wrote:
do you know C++ compilers that generates Z80 binaries? :-)


Apr 27 '06 #52
Diego Martins wrote:
do you know C++ compilers that generates Z80 binaries? :-)


A quick Google search turns up a number of C compilers that
cross-compile to Z80. I'm sure if I looked long enough there'd be a C++
one in there.

Brian

--
Please quote enough of the previous message for context. To do so from
Google, click "show options" and use the Reply shown in the expanded
header.
Apr 27 '06 #53
"Default User" <de***********@yahoo.com> wrote in message
news:4b*************@individual.net...
Diego Martins wrote:
do you know C++ compilers that generates Z80 binaries? :-)


A quick Google search turns up a number of C compilers that
cross-compile to Z80. I'm sure if I looked long enough there'd be a C++
one in there.


If not, and you don't need full (current) C++, using CFRONT to output to your
Z80 targeted C compiler might do the job.

- Bill

Apr 27 '06 #54
In article <11*********************@v46g2000cwv.googlegroups. com>, Diego
Martins <jo********@gmail.com> writes
do you know C++ compilers that generates Z80 binaries? :-)


No.

They found it wasn't practical. A cut down version of C++ has been
used on some 8 bit micros but it is not very effective.

Why do you want C++ on the Z80 anyway. C is far better suited.

There are several C compilers for the Z80

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Apr 28 '06 #55

A few misc notes...

Walter is right, there is no interest in commercial DOS compilers
these days. I know that several large and well known hardware and
software vendors still develop DOS applications, mostly for custom
'close to the metal' applications. But they're not about to actually pay
money to get some compiler development done.

Digital Mars and Open Watcom support both 16-bit and 32-bit
development, which may be extremely helpful on DOS.

Open Watcom C++ support isn't as good as it could be, but it's better
than it used to be and probably perfectly adequate for an app developed
from scratch.

Open Watcom comes with several DOS extenders: DOS/4GW is old and
unsupported but works and is royalty-free. CauseWay is public domain,
works well and complete source code is available. DOS/32A is very good,
also free and with source code available. There is a bunch of other DOS
extenders that can be used with Open Watcom (HX-DOS, PMODE/W, etc.).

Don't know about the other compilers but Open Watcom also has a pretty
good DOS debugger - it's actually also easy to cross debug from other
platforms (Windows, OS/2, with a little bit of hand holding Linux).
Personally, I'd go for a cross compiler - DOS sucks to develop on,
though it has advantages as a specialized application platform.

Whether the DOS app works in a NT DOS box is entirely a function of
the application, not the compiler. Some things just won't work in a VDM
and after all, if you could run the app in Windows, you wouldn't be
developing a DOS program.
Michal
May 3 '06 #56

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Chris Mantoulidis | last post by:
Out of curiosity, I wanted to test executable file sizes of the same program from different compilers... The 2 compilers I tested (both old, on purpose) were Borland C++ 3.1 and DJGPP 2.03... ...
24
by: wm2004 | last post by:
Which is the best C++ Compiler? Get An Online Business and Make Money! Learn the secrets of many ordinary people who quit their day jobs to pursue an online business. There are many affiliate...
9
by: Jacek Dziedzic | last post by:
Hi! I often find that my programs need to store information on "current mode of something" with two or at most several mutually exclusive "modes" to choose from, e.g. - datafile: is it in a)...
19
by: David W | last post by:
float nanometers(long pm) { return pm / 1000.0f; } void f() { if(nanometers(309311L) == nanometers(309311L)) { // do something }
71
by: David T. Ashley | last post by:
Where is the best place to define TRUE and FALSE? Are they in any of the standard include files, ever? Do any standards apply? What I've traditionally done is something like: #ifndef...
31
by: Mark Dufour | last post by:
Hi all, I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an optimizing Python-to-C++ compiler. Shed Skin allows for translation of pure (unmodified), implicitly statically typed...
10
by: rsteph | last post by:
I've been working to immerse myself in C++ lately. I've programmed with Java, VB, and VB.NET in the past. I'm curious what compiler(s) people use and/or would suggest to me to use with C++...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
159
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.