delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/14/06:16:55

From: buers AT gmx DOT de (Dieter Buerssner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: inefficiency of GCC output code & -O problem
Date: 14 Apr 2000 10:21:29 GMT
Lines: 22
Message-ID: <8d726u.3vvqipv.0@buerssner-17104.user.cis.dfn.de>
References: <200004121649 DOT SAA12655 AT acp3bf DOT physik DOT rwth-aachen DOT de> <38F4C0D9 DOT C73A8E0A AT mtu-net DOT ru> <8d4rse DOT 3vvrn3d DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <38F60FE4 DOT 31BF32BB AT mtu-net DOT ru> <8d5mi0 DOT 3vvqipv DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <38F6A395 DOT 4040BFBE AT mtu-net DOT ru>
NNTP-Posting-Host: pec-107-21.tnt6.s2.uunet.de (149.225.107.21)
Mime-Version: 1.0
X-Trace: fu-berlin.de 955707689 7691651 149.225.107.21 (16 [17104])
X-Posting-Agent: Hamster/1.3.13.0
User-Agent: Xnews/03.02.04
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alexei A. Frounze wrote:

>Okay, but why error messages are about parentheses?
>
>> Tmapping.s:478: Error: Missing ')' assumed
>> Tmapping.s:478: Error: Ignoring junk '(%ebp))' after expression

  fstcw (-196(%ebp)) // offset from memory

The -196(%ebp) comes from gcc, and of course is legal for "g",
the outer parentheses come from you.

This is a double indirection, and wrong. You haven't accepted
my explaination, so perhaps you should read about "g" in the
Gcc manual. And, "g" does *not* ask for a register, you must
not reference anything you got by the "g". It may work, or 
it may not.

I have shown you code, that should work. Have you tried it?

-- 
Regards, Dieter

- Raw text -


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