X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: nospam AT none DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: celeron processor and DOS application compatibility? Date: Fri, 20 Feb 2004 18:21:34 +0000 (UTC) Organization: University of California, Berkeley Lines: 73 Sender: Raymond Chi Message-ID: References: NNTP-Posting-Host: soda.csua.berkeley.edu X-Trace: agate.berkeley.edu 1077301294 14332 128.32.112.233 (20 Feb 2004 18:21:34 GMT) X-Complaints-To: usenet AT agate DOT berkeley DOT edu NNTP-Posting-Date: Fri, 20 Feb 2004 18:21:34 +0000 (UTC) User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (FreeBSD/4.7-STABLE (i386)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I found the cause of the problem. Sympton: console based DOS/DJGPP application does not print everything it suppose to print on screen before exiting. Cause: On a Celeron based XP system, the DOS subsysteme exits too fast, before the system actually finishes printing the whole thing to the screen. On a P4 based system, this does not occur. Workaround: add a sleep(1) in my hello_world code before exiting will fix the problem. This is very strange indeed. There are no problem with the DJGPP installation or gcc, as the problem is duplicated with classic PGP 2.6: c:\>pgp -kv Pretty Good Privacy(tm) 2.6.2 - Public-key encryption for the masses. (c) 1990-1994 Philip Zimmermann, Phil's Pretty Good Software. 11 Oct 94 Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc. Distributed by the Massachusetts Institute of Technology. Export of this software may be restricted by the U.S. government. Current time: 2004/02/20 18:17 GMT Key ring: 'c:\util\encode\pgp26\pubring.pgp' ***** there's suppose to be something after this, the actual key stored in the file ***** I run this command on a P4 system with identical binary, it works fine and the result is printed. I run gcc on celeron based system: c:\>gcc -v Reading specs from c:/devtools/djgpp/lib/gcc-lib/djgpp/3.31/specs that's IT! I run the same commadn on a P4 system I get Reading specs from f:/devtools/djgpp/lib/gcc-lib/djgpp/3.31/specs Configured with: /devel/gnu/gcc/3.3/gnu/gcc-3.31/configure i586-pc-msdosdjgpp -- prefix=/dev/env/DJDIR --disable-nls Thread model: single gcc version 3.3.1 Looks like a bug in windows XP.... Raymond Andrew Cottrell wrote: > Make sure thwDJGPP and GCC version as well as the other exes are 2K/XP > compatible. Please goto the following URLs or info on getting the > updates > http://homepages.nildram.co.uk/~phekda/richdawe/djgpp/2.04/status204.html > http://clio.rice.edu/djgpp/win2k/main.htm >>the classic PGP 2.6 also fails to display information correctly. (pgp >>-kv does not display any user) however pgp -e (to encrypt) seems to >>work correctly. > Nocomment as this is not DJGPP related from what I can see. >>I compiled a hello_work app using djgpp, nothing gets displayed. > It is C++ or C? You do not give enough details about the failure or > your program. Please give more info so people can help. > I have not seen any output to screen problems with the standard hello > world app in C++ or C frrom any version of DJGPP under XP if you can > produce the executable. Even old DJGPP 2.02 executables output text > okay on XP, but that does not mean that they can do any file i/o or > other complex work. >>I have another machine, a almost identical P4, everything works great.... > So what's the difference? >>Has anyone seen this before? > No.