Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: peltz@cerl.uiuc.edu (Steve Peltz)
Subject: Re: What are the meanings of '.alias' and '.noalias'?
Date: 1995/08/11	[thread overview]
Message-ID: <40g5l8$iuo@vixen.cso.uiuc.edu> (raw)
In-Reply-To: 40bh4b$krh@pollux.usc.edu

In article <40bh4b$krh@pollux.usc.edu>,
Sungdo Moon <sungdomo@pollux.usc.edu> wrote:
>After removing these ".alias" and ".noalias", the execution time is increased
>dramatically. Could anybody please tell me the meaning of ".alias" and
>".noalias"?

It's telling the assembler that references to memory via those registers
do not overlap. If anything, it ought to speed your code up, as it allows
the assembler to eliminate redundant memory reads/writes. The .alias
condition is the default for all register pairs, which is why it puts
them all back the way they were after the inner loop segment.

I'd suggest looking at what the assembler actually produced (using "dis")
in the two cases to see what is going on. You can't go just by what
the assembler source code is, since the assembler can eliminate and
re-order code based on various settings (such as the .alias/.noalias
directives, and the .set volatile, reorder, and move settings).
-- 
Steve Peltz
tricorn@uiuc.edu



      reply	other threads:[~1995-08-11  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-09  4:00 What are the meanings of '.alias' and '.noalias'? Sungdo Moon
1995-08-11  4:00 ` Steve Peltz [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox