Mail Archives: djgpp/2013/11/26/23:47:33
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 -