From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bacf11415354057b,start X-Google-Attributes: gidfee84,public From: "Anthony P. Leclerc" Subject: (System) cost of using alpha rounding mode instructions Date: 1995/09/06 Message-ID: #1/1 X-Deja-AN: 109597819 organization: Univ. of South Carolina, Columbia content-type: TEXT/PLAIN; charset=US-ASCII mime-version: 1.0 newsgroups: comp.unix.osf.osf1 I am using the rounding mode instructions as part of the Alpha architecture (e.g. addtm, addtd, multm, multd, ....). At first (and maybe still) I thought DEC was clever in introducing these seperate instructions in order to do directed rounding, rather than call a seperate instruction to set a control register before ordinary "add", "mult", etc. instructions. However, now I'm wondering what the cost is. All architectures I have worked on previously used the seperate instruction (to change a value in the rounding control register) method for permitting IEEE recommend (or is it required now) directed rounding. The timings for the interval arithmetic software I was using seemed reasonable (on an Ultrix box, for instance). On an Alpha, I'm finding out that a simple interval arithmetic program which runs in 20 seconds on a DEC 5000/240 takes over 3 minutes to run on a DEC 3000/400 with 64 M. I have subsequently done profiling to try to get a handle on this problem. The profiler tells me that the alpha program only took 10 seconds. Using "time" I verfied that, sure enough, the user time was about 10 seconds, but the system time was around 3 minutes! Basically I'm wondering what I may be doing wrong. The inline assembly seems pretty straight forward, and I even seperated out the assembly instructions into a seperate file, rather than inlining. It seems from a profile, that the timings are reasonable. However, the enourmous system time (about 25 times the cost of the user computation time) is distressing. Any ideas? Please send me email about this. I don't have convenient or regular access to news. |"""""| ( @ @ ) +----------------------.ooo0----(_)----0ooo.---------------------+ | | | *** http://www.cs.cofc.edu/per/fac/leclerc/WWW/apl.html *** | | | | .ooo0 | | ( ) 0ooo. | +---------------------------\ (----( )-------------------------+ \_) ) / (_/