www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/03/05:15:23

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Carlo Bramini" <cbramix AT libero DOT it>
Newsgroups: comp.os.msdos.djgpp
Subject: From GCC 2.7.2.1 to GCC 3.0.3
Date: Sun, 3 Feb 2002 10:02:07 +0000 (UTC)
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 35
Message-ID: <12d3c78a938fe73fa46dfc220539e5b6.66640@mygate.mailgate.org>
NNTP-Posting-Host: ppp-165-138.25-151.libero.it
X-Trace: news.mailgate.org 1012711714 13330 151.25.138.165 (Sun Feb 3 11:02:07 2002)
X-Complaints-To: abuse AT mailgate DOT org
NNTP-Posting-Date: Sun, 3 Feb 2002 10:02:07 +0000 (UTC)
Injector-Info: news.mailgate.org; posting-host=ppp-165-138.25-151.libero.it; posting-account=66640; posting-date=1012711714
User-Agent: Mailgate Web Server
X-URL: http://mygate.mailgate.org/mynews/comp/comp.os.msdos.djgpp/12d3c78a938fe73fa46dfc220539e5b6.66640%40mygate.mailgate.org
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi.
I'm a user of DJGPP and my compiler version was 2.7.2.1
I have downloaded GCC 3.0.3 and it works fine too, but I have noticed
some "strange" things...
For example, I have a program with a lot of lines like that:

m = ~m;

and the new compiler translates it into:

xorl $-1,%ebx

instead of:

notl %ebx

The program works exactly, of course, but the "xor" opcode requires 1
byte more than the "not" one.
"Not" should be able to go into both pipes of Pentium CPU, exactly like
"xor", so I don't understand the reason of that.
And since this code is executed *many* times, it would be better to use
the space of a cache line in the best way.

Maybe I'm doing something wrong with the new compiler, so I'm asking
here to people more expert than me on version 3.0.3

Sincerely,

Carlo

PS: I'm not an english native speaker, please excuse my errors.


-- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

- Raw text -


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