delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/11/01:08:15

From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: inefficiency of GCC output code & -O problem
Date: Tue, 11 Apr 2000 08:29:42 +0400
Organization: MTU-Intel ISP
Lines: 29
Message-ID: <38F2AA36.33206DD9@mtu-net.ru>
References: <38F20E7A DOT 3330E9A4 AT mtu-net DOT ru> <38F23A21 DOT A59621A1 AT inti DOT gov DOT ar>
NNTP-Posting-Host: ppp104-21.dialup.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 955428645 14359 212.188.104.21 (11 Apr 2000 04:50:45 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 11 Apr 2000 04:50:45 GMT
X-Mailer: Mozilla 4.61 [en] (Win95; I)
X-Accept-Language: en,ru
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

salvador wrote:
> > Is it a normal thing, if one instruction that adds something to ESP(or EBP) is
> > followed by sutracting instruction that works with the same register?
> 
> ?

When it discards ESP change after a call to subroutine and plus sometimes one
extra  add/sub. But they could be combined altogether to the only one
instruction.

> > an error encounters:
> > "Error: Error: Missing ')' assumed"
> > "Error: Error: Ignoring junk `(%ebp))' after expression")?
> > W/o the -O2 switch it's compiled fine. Isn't it a little bit strange?
> 
> Can you show a small example? I guess that's an error in your inline assembler
> code, but I can't know without the actual code.

21KB of a C file that depends on 3 other modules. :))
I'll try. But I don't know what's wrong, since it _is_ compiled normally w/o -O
switch. Strange thingy.

later,
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru


- Raw text -


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