alphalinux.org high-perf list (1998-2001)
 help / color / mirror / Atom feed
* Instruction Sets and Alpha (was: CPU instruction list)
@ 1999-03-17 13:17 Richard Gorton
  0 siblings, 0 replies; only message in thread
From: Richard Gorton @ 1999-03-17 13:17 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1779 bytes --]

Piotr wrote:

>But, when reading Digital Unix Assembly Programmers Guide (1996) one can

>learn about several integer division instructions (divl, divlu etc) on

>page 3-15. What is going on?

The architecture itself does not provide an integer division instruction.

The assembler treats these as macro instructions, and converts those

macro instructions into calls to libc routines.

>And if my computer has sqrt instruction why my compiler (egcs 1.1) does

>not use it (or how to insist on using it)?

The hardware sqrt instructions don't show up until the 21264 series chips.

Unless you specify which target (at gcc/egcs configure time) to generate

code for, the default is to generate the instructions which are currently

available for the machine you are building the compiler on ('native').

You _can_ trigger this with -mcpu=ev6.  Also, if you want relatively

fast sqrt() behavior for machines which do have a hardware sqrt()

instruction, you'll need to use -ffast-math as well.  Otherwise,

there is a bunch of extra code generated.

>Generally, how (where) can I obtain a complete list of CPU instructions

>for my system? I plan to start assembler programming of some crucial

>routines of my computational applications (for example random number

>generator). 

I'm not sure of a good location on-line, but I personally use:

        Alpha Architecture Reference Manual

        Third Edition

        ISBN 1-55558-202-8

According to information near the ISBN number, the url to the

publisher is:

        http://www.bh.com/

I hope this helps,

                Rick

Richard Gorton			http://www.digital.com/amt	

Compaq Computer Corporation	All standard disclaimers apply.

Reply-to: gorton@scrugs.lkg.dec.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-17 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-17 13:17 Instruction Sets and Alpha (was: CPU instruction list) Richard Gorton

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