* What are the meanings of '.alias' and '.noalias'?
@ 1995-08-09 4:00 Sungdo Moon
1995-08-11 4:00 ` Steve Peltz
0 siblings, 1 reply; 2+ messages in thread
From: Sungdo Moon @ 1995-08-09 4:00 UTC (permalink / raw)
Hi.
I am doing simulation of tiled matrix multiply in DEC 4000 Model 710.
Using "cc -O3 -S tiled_matrix_multiply.c" (cc is DEC C compiler),
I got following assembly codes for innermost loop,
.noalias $0,$3
.noalias $0,$sp
.noalias $16,$0
.noalias $16,$3
.noalias $16,$sp
.
.
.
.alias $0,$16
.alias $0,$3
.alias $0,$sp
.alias $16,$3
.alias $16,$sp
After removing these ".alias" and ".noalias", the execution time is increased
dramatically. Could anybody please tell me the meaning of ".alias" and
".noalias"?
Thanks in advance.
-- Sungdo Moon (sungdomo@cs.usc.edu)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What are the meanings of '.alias' and '.noalias'?
1995-08-09 4:00 What are the meanings of '.alias' and '.noalias'? Sungdo Moon
@ 1995-08-11 4:00 ` Steve Peltz
0 siblings, 0 replies; 2+ messages in thread
From: Steve Peltz @ 1995-08-11 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-08-11 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-09 4:00 What are the meanings of '.alias' and '.noalias'? Sungdo Moon
1995-08-11 4:00 ` Steve Peltz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox