delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: [long] gcc performance and possible bug |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <ir0rgs0i8ca5ghgbqu1jruip7rdm2knkk9@4ax.com> |
References: | <39046544 DOT ADB90632 AT inti DOT gov DOT ar> <200004271315 DOT JAA03722 AT delorie DOT com> <3908A05C DOT 26F9B8B4 AT inti DOT gov DOT ar> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 29 |
X-Trace: | /KDWjZFZlVgOKvpgs2WlIgGo7ZSMvhcxm56Xzn1d/zjdmROHF/kHk9g0lKiSl8T05HECORCKKOhS!byuVlXQWKZ6gFlvC35LAnCKihyM2/wKLcDIJkl9SmOl9Wez1c/QSIUaDYVH8Izu9LFwYW2kChrTr!dOsTxQ== |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Mon, 01 May 2000 13:16:47 GMT |
Distribution: | world |
Date: | Mon, 01 May 2000 13:16:47 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Thu, 27 Apr 2000 17:17:33 -0300, salvador <salvador AT inti DOT gov DOT ar> wrote: >Dieter Buerssner wrote: > >> Is there a switch for gcc, that causes it not to store const data >> in the code segment. This might help not only my AMD CPU, but also >> other CPUs, as Eli reported a 1:3 speed difference with P166. > >Well, it seems it will help only when the constant is too close to the >function. >To the question: don't know. > >> It may even be desirable to default to such a switch for special >> -mcpu or for compiling with -O and without -g. > >But you'll lose protection. Try writing to a constant in Linux, >I just checked and got a Segmentation fault. What about moving all static constants to the _end_ of a code segment? Does this sound good enough to suggest to the GCC folks? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |