delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/11/28/04:45:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.66.144.133 with SMTP id sm5mr13903092pab.5.1385631245510;
Thu, 28 Nov 2013 01:34:05 -0800 (PST)
X-Received: by 10.183.1.40 with SMTP id bd8mr423234obd.11.1385631245437; Thu,
28 Nov 2013 01:34:05 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Thu, 28 Nov 2013 01:34:05 -0800 (PST)
In-Reply-To: <bfnhrrF6qghU1@mid.dfncis.de>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=37.197.167.116;
posting-account=O4PeigoAAAAxZv2r8tNE88JIfXb1PYZ9
NNTP-Posting-Host: 37.197.167.116
References: <0404a92b-e194-4e75-97b5-58c8e5b3c076 AT googlegroups DOT com>
<52957941 DOT 9050203 AT iki DOT fi> <57ae09cc-bc48-4dcf-978d-9078096b2127 AT googlegroups DOT com>
<bfnhrrF6qghU1 AT mid DOT dfncis DOT de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <82676ab0-7e81-4b89-bc7a-e3360d6c3b93@googlegroups.com>
Subject: Re: Using DJGPP for C++ DOS development today?
From: John Davidson <codewhakker AT gmail DOT com>
Injection-Date: Thu, 28 Nov 2013 09:34:05 +0000
Bytes: 2660
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id rAS9j3ec014658
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hans-Bernhard Bröker wrote:
> The library in question would be the C++ runtime library, a.k.a. libstdc++

Sorry if I'm just misunderstanding something (I don't know anything about compilers beyond a basic grasp and never had to rebuild anything), but can't I just rebuild libstdc++ from source for the 386? Is it full of inline assembler?

I found this:
https://groups.google.com/forum/#!topic/comp.os.msdos.djgpp/WeMjxnR1NBc
which seems to indicate that GCC will output non-386 opcodes anyway :-(

http://gcc.gnu.org/onlinedocs/libstdc++/faq.html says:
"Only when actually running the code on a i386 will the problem appear.
This is fixed in 3.2.2."


Rod Pemberton wrote:
> An alternate solution might be instruction emulation.

Thanks, didn't think about that! It sounds like a fragile solution though; wouldn't there be problems with switching in and out of protected mode? (man, I never thought I'd ever say that again!)

Surely something as basic as the xadd or cmpxchg instruction must be used by every other function if it was enabled during compilation, so opcode emulation would be a big performance hit?

Or do I just write the 486 emulation myself in DJGPP? I can't remember all this DOS interrupt business. I guess I'll have some catching up to do. And stocking up, on aspirin...

- Raw text -


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