cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/2013/11/26/23:47:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <52957941.9050203@iki.fi>
Date: Wed, 27 Nov 2013 06:46:57 +0200
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Using DJGPP for C++ DOS development today?
References: <0404a92b-e194-4e75-97b5-58c8e5b3c076 AT googlegroups DOT com>
In-Reply-To: <0404a92b-e194-4e75-97b5-58c8e5b3c076@googlegroups.com>
Reply-To: djgpp AT delorie DOT com

On 11/27/2013 03:28 AM, John Davidson wrote:
> Hi!
>
> I used to program C and inline assembler with DJGPP under DOS in the nineties.
>
> Now I have a hobby project that would target DOS (yes, seriously), and I would like to take the opportunity to get beyond the basics of C++ and actually learn the language proper. So I'll try to implement this program in as elegant C++ code as possible. (The program will be of a moderate size and I have written similar programs before in C)
>
> Having spent some time reading up on C++, it seems that C++ has evolved a lot in recent years, and modern C++ is quite different from the dog-turned-octopus I remember frowning upon.
>
> So, my questions:
>
> * "Which C++" can I realistically expect to use with DJGPP? To what extent are features from C++11 supported? C++03?
You can see summary about C++11 support in GCC at http://gcc.gnu.org

>
> * Google led me to a DJGPP version 2.04-beta. Is this usable?
Yes. Although we should have a new beta based on newer development version.
I do not know when it will be released. As usually : when it is ready
>
> * Which GCC version is the latest I can use with DJGPP? (without having to do any porting myself)
All recent versions. Although gcc-4.8.X only for DJGPP v2.04. One could even get my builds of later
GCC development snapshots for DJGPP (latest is less than week old now) if is wanting to test
snapshots at his own risk.
>
> * Can I expect the same performance from C++/DJGPP over C/DJGPP, when targeting something like a 20MHz 80386 with 2mb RAM?
>
> (The the development will _not_ be done on the 386, even with RHIDE and all...)
You surely will have trouble with C++ standard library on 80386 not only due to small memory amount.
C++ library uses instructions only available since 80486. 80486 may be OK. I myself have
nothing lower than Core 2.

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019