delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/21:03:13

Message-ID: <37B31E2E.24D7D864@home.com>
From: Trevor <kearns AT home DOT com>
Organization: @Home Network
X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Optimization for pentium (pgcc warning)
References: <3796313E DOT 7548AFDD AT friko6 DOT onet DOT pl>
Lines: 27
Date: Thu, 12 Aug 1999 17:16:52 GMT
NNTP-Posting-Host: 24.112.97.7
X-Complaints-To: abuse AT home DOT net
X-Trace: news2.rdc1.on.home.com 934478212 24.112.97.7 (Thu, 12 Aug 1999 10:16:52 PDT)
NNTP-Posting-Date: Thu, 12 Aug 1999 10:16:52 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have had major problems compiling windows code using mssdk headers
using pgcc (1.0.1 I think). The problem was that it was pushing two
arguments to TranslateMessage() and DispatchMessage(), and they only
take one argument. This lead to a leak of 8 bytes of stack space per
message, which causes a mysterious crash a few minutes after starting
the program (due to stack overflow).

Also, -O6 does enable unstable optimizations. Just read the pgcc faq and
see the options labelled as unstable and compare it to the options
enabled with -O6

The best commandline for stability is -O6 -fno-loop-after-global
-fno-combine-222 -fno-opt-reg-stack -fno-peep-spills

although I still had the problem explained above with these options.

toudi wrote:
> 
> I have gcc 2.8.1 and it has an option -mpentium, but it does
> nothing.
> I heard somethin about PGCC. Is it gcc with optimization for
> pentium?
> Where I can download it from?
> 
> --
>        mailto:pienkny AT friko6 DOT onet DOT pl
>   +4822368951

- Raw text -


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