473,836 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 12860
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******** *****@individua l.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************ *********@v46g2 000cwv.googlegr oups.com>, Diego
Martins <jo********@gma il.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
6705
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... The program was nothing but a simple hello world program using the iostream header file... I compiled and linked (both copies) with those 2 different
24
2072
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 programs to choose from, but choose an interest you are passionate about and sell it online! Please subscribe to the newsletter below for updates and news:
9
2553
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) read-only mode or b) write-only mode, - a function picking points a) above, b) below or c) contained on a plane in 3D, etc.
19
1775
by: David W | last post by:
float nanometers(long pm) { return pm / 1000.0f; } void f() { if(nanometers(309311L) == nanometers(309311L)) { // do something }
71
33249
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 (TRUE) #define TRUE (1)
31
2808
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 Python programs into optimized C++, and hence, highly optimized machine language. Besides many bug fixes and optimizations, these releases add the following changes: -support for 'bisect', 'collections.deque' and 'string.maketrans'
10
2228
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++ programming. I used a free version of NetBeans to program in Java, then Visual Studios 6.0 and Visual Studio.NET for each type of VB. I tried using Visual Studio.NET to write C++ programs but found that it kept wanting to add extra code, and that trying to...
41
18247
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
159
7142
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
9813
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9665
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10584
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10248
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6976
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5645
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5817
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.