This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: gas + prefetch
- To: Ronald Benedik <rbenedik at fsmat dot htu dot tuwien dot ac dot at>
- Subject: Re: gas + prefetch
- From: Alan Modra <alan at SPRI dot Levels dot UniSA dot Edu dot Au>
- Date: Fri, 5 Nov 1999 08:44:27 +1030 (CST)
- cc: binutils at sourceware dot cygnus dot com
On Thu, 4 Nov 1999, Ronald Benedik wrote:
> I found out the asssembler doesn't reckognize the prefetch instruction of
> the K6-II,K6-III,and probably Athlon. Since a prefetch instruction is a
> good thing, built in support would be of interest also for other people.
gas understands the PIII/Athlon prefetch instructions "prefetchnta",
"prefetcht0", "prefetcht1", and "prefetcht2". Also the AMD K6 ones
"prefetch", and "prefetchw".
Note that you need to give all of these instructions a memory operand. eg.
prefetch (%ebx)
H.J. Lu has fairly recent precompiled binutils packages available for
Linux on ftp.varesearch.com/pub/support/hjl/binutils/