From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199709031635.SAA13760@zebara.axis.se> Date: Wed, 3 Sep 1997 10:50:53 -0700 From: Kelvin Lunsford Subject: RE: Bytes and stuff... Ronny Ranerup(ronny@axis.com) wrote: ... stuff deleted >I just got an AlphaPC 164LX, 533Mhz. Slick machine... Twice as fast as a >PPRO when running gcc and three times as fast running dhrystone (yes a silly >benchmark, I know). 530.57 BogoMips... > >Anyway, we bought it to try it out as a server running our ASIC-simulators, >but of course we didn't get the kind of speed we wanted. In fact the first tests >showed it to be a tad slower than our PPROs. Sad. We knew beforehand that all >the byteaccesses in the simulator might mess up the Alpha and it seems we were >right. So we changed all bytes into ints and tried again. 20 percent faster, although >the code got half the size of the byteversion and even smaller than the PPRO one. >Cache trashing or something? I don't know quite what is happening. The Alpha processor is a 64 bit machine. Most arithmatic and logical operations occur using 64 bit values in the registers, and memory writes of less than 64 bits requires a read and merge operation. Because the compilers define the int size to be 32 bits the intermediate results require extending and truncating, so using ints is simular to using bytes. If you want the best performance try using long ints (64 bits). >I'm not sure but I think the CPU has instructions for byte access, but >gcc doesn't use them yet. I've heard that gcc for Alpha makes bad code >so I would like to see if DEC cc does a better job. I've gotten faster code (heavy byte manipulation) using gcc, although I haven't used the newest DEC compiler, still at 3.0B. Kelvin Lunsford, kelvin@qantel.com begin 600 WINMAIL.DAT M>)\^(C<1`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$-@ 0` M`@````(``@`!!) &`!P!```!````# ````,``# #````"P`/#@`````"`?\/ M`0```$4`````````@2L?I+ZC$!F=;@#=`0]4`@````!A>' M;&ES=$!R961H M870N8V]M`%--5% `87AP+6QI``(P`0````4` M``!33510`````!X``S !````% ```&%X<"UL:7-T0')E9&AA="YC;VT``P`5 M# $````#`/X/!@```!X``3 !````%@```"=A>' M;&ES=$!R961H870N8V]M M)P````(!"S !````&0```%--5% Z05A0+4Q)4U1 4D5$2$%4+D-/30`````# M```Y``````L`0#H!`````@'V#P$````$`````````Y71EL"@P!0`O()`@!C: K 0T- +1:2T:,PS0&C-S"U458C$X"J #8!/08^,%0 @`;FYY!_ `< 20E'5P M&VUC#> @*!MO1QQT`V <\4!A> 0`+HT%H&T=KQZP*2!W'&*>.A[O''0*CR,_ M("XF@*LA/QZP(!/ =0W0( VP;FP1P F )%4^)1\<=$E((&IU$\ @9QQP(!$# MD4%L3222]/,%\; MWF)G"? 1< # SX$-Q0R ", F +.!) M_P.@+J ^4R"8GD3T #0+D $$ >1[PN 3'-&]RU0:4/2!X$$(/\=@$QS*Y,S MLT01$; 3X 0@^TVB!)!E5[]8SQ]?70(LX?]$4$-Q$7$94$UQ5X%;`UO"OT1! M9,$O`3/2"(%D`6<+<>LLX '0($U0*2155%WG'%'_6W(%L7;!+R L(#HP M1!$M9ODGT$UO+L(%$#0``, T8/LSI! !&!$@2* =C$$($L!_RAP!!%4 MLWM$!" 7H'81%Z#O+P(7H%01@>1R3$!^"'PA.D(%D&$JX#1!:U-M"$`XB%!) '@'=+T$= @1)S1R"$*&Y0>/\3 MT#/0,T)E9#,0?= T8!E0_RQ@=)!_="1591-VP4;TB9/7?X1D8WPA22@P>0A@ M3%_C*.\I^R=M(#L@ M4L$(<#]#@43Q*K!TTBU 3()#4/Y5; %;PA/ '7 M% # :P>18E01:X)?GO^@#U'O1% JL'<(8&Q]?7%II;!$,E[A1 `H,$1^12OP MHB4O$3I `D!%L6K\;V)P3QOSEO\>.*.S*R'7C,%G%6MT**0!=AT0G?/_`X$% M($$B8'^$,X%GB/\JH1& ;G%,$215AO$SXBY0_U9!DE*K,X>%CB$T8&0Q M5U&P,RXP0JRV)%5+*&"J=EOA3#,0