# Ruby performance gains on SPARC

**URL:** <https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825>\
**Category:** Development\
**Created:** [March 13, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825 "2008-03-13T17:04:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [March 13, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825/1 "2008-03-13T17:04:35Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

[http://blogs.sun.com/d/entry/ruby\_performance\_gains\_on\_sparc](http://blogs.sun.com/d/entry/ruby_performance_gains_on_sparc)

e$B$K$h$k$He(BSPARCe$B$G$Oe(BEXEC\_TAGe$B$NA0$Ne(BFLUSH\_REGISTER\_WINDOWSe$B$OITMWe(B  
e$B$N$h$&$G$9!#$G!“$3$l$r\<B:]$K9T$C$F$$$k$N$O:#$^$Ge(BSPARCe$B$He(BIA64  
e$B$@$1$@$C$?$N$G$9$,!”\<j6a$Ke(BIA64e$B%5!\<%P$,$"$k?M$O!"e(BEXEC\_TAG()e$B$+e(B  
e$B$ie(BFLUSH\_REGISTER\_WINDOWSe$B$r:o$C$F$bF0:n$9$k$+$I$&$+3NG’$7$F$$e(B  
e$B$?$@$1$^$;$s$+!)e(B

---

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [March 14, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825/2 "2008-03-14T17:34:43Z")

</div>

In article [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid),  
Yukihiro M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> [http://blogs.sun.com/d/entry/ruby\_performance\_gains\_on\_sparc](http://blogs.sun.com/d/entry/ruby_performance_gains_on_sparc)
> 
> e$B$K$h$k$He(BSPARCe$B$G$Oe(BEXEC\_TAGe$B$NA0$Ne(BFLUSH\_REGISTER\_WINDOWSe$B$OITMWe(B  
> e$B$N$h$&$G$9!#$G!“$3$l$r\<B:]$K9T$C$F$$$k$N$O:#$^$Ge(BSPARCe$B$He(BIA64  
> e$B$@$1$@$C$?$N$G$9$,!”\<j6a$Ke(BIA64e$B%5!\<%P$,$"$k?M$O!"e(BEXEC\_TAG()e$B$+e(B  
> e$B$ie(BFLUSH\_REGISTER\_WINDOWSe$B$r:o$C$F$bF0:n$9$k$+$I$&$+3NG’$7$F$$e(B  
> e$B$?$@$1$^$;$s$+!)e(B

1.8 e$B$He(B 1.9 e$B$G;n$7$F$\_$^$7$?$,!"e(Bmake test, test-all  
e$B$O$H$/$Ke(B  
e$BJQ2=$7$^$;$s$M!#e(B

e$B$“$H$O!”$=$Ne(B 2e$B2U=j$Ke(B FLUSH\_REGISTER\_WINDOWS e$B$rF~$l$?e(B  
knu e$B$5e(B  
e$B$s$K?R$M$k$H$+!#e(B

# 1.8: Index: eval.c

— eval.c (revision 15781)  
+++ eval.c (working copy)  
@@ -1028,7 +1028,7 @@ static struct tag _prot\_tag;  
 #define PROT\_LAMBDA INT2FIX(2) /_ 5 _/  
 #define PROT\_YIELD INT2FIX(3) /_ 7 \*/

-#define EXEC\_TAG() (FLUSH\_REGISTER\_WINDOWS, ruby\_setjmp(((void)0),  
prot\_tag-\>buf))  
+#define EXEC\_TAG() (ruby\_setjmp(((void)0), prot\_tag-\>buf))

#define JUMP\_TAG(st) do {   
ruby\_frame = prot\_tag-\>frame;   
@@ -10330,7 +10330,7 @@ rb\_thread\_switch(n)  
}

#define THREAD\_SAVE\_CONTEXT(th) \

- (rb\_thread\_switch((FLUSH\_REGISTER\_WINDOWS,  
ruby\_setjmp(rb\_thread\_save\_context(th), (th)-\>context))))

- (rb\_thread\_switch((ruby\_setjmp(rb\_thread\_save\_context(th),  
(th)-\>context))))

NORETURN(static void rb\_thread\_restore\_context \_((rb\_thread\_t,int)));  
NORETURN(NOINLINE(static void  
rb\_thread\_restore\_context\_0(rb\_thread\_t,int,void\*)));

# 1.9: Index: eval\_intern.h

— eval\_intern.h (revision 15777)  
+++ eval\_intern.h (working copy)  
@@ -143,7 +143,7 @@ char \*strrchr(const char \*, const char);  
#define POP\_TAG() TH\_POP\_TAG()

#define TH\_EXEC\_TAG() \

- (FLUSH\_REGISTER\_WINDOWS, ruby\_setjmp(\_th-\>tag-\>buf))

- (ruby\_setjmp(\_th-\>tag-\>buf))

#define EXEC\_TAG()   
TH\_EXEC\_TAG()

---

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [March 15, 2008, 4:03am UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825/3 "2008-03-15T04:03:46Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34057] Re: Ruby performance gains on SPARC”  
on Sat, 15 Mar 2008 01:34:03 +0900, Tanaka A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
writes:

|1.8 e$B$He(B 1.9 e$B$G;n$7$F$\_$^$7$?$,!"e(Bmake test, test-all e$B$O$H$/$Ke(B  
|e$BJQ2=$7$^$;$s$M!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#e(B

|e$B$“$H$O!”$=$Ne(B 2e$B2U=j$Ke(B FLUSH\_REGISTER\_WINDOWS e$B$rF~$l$?e(B knu e$B$5e(B  
|e$B$s$K?R$M$k$H$+!#e(B

e$B$I$&$G$7$g$&!)e(B \> knue$B$5$s!#e(B

---

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [March 18, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825/4 "2008-03-18T15:17:32Z")

</div>

ã€€è¿”äº‹ãŒé…ã‚Œã¦ã™ã¿ã¾ã›ã‚“ã€‚

At Sat, 15 Mar 2008 12:03:12 +0900,  
matz wrote:

> |ã‚ã¨ã¯ã€ãã® 2ç®‡æ‰€ã« FLUSH\_REGISTER\_WINDOWS ã‚’å…¥ã‚ŒãŸ knu ã•  
> |ã‚“ã«å°‹ã­ã‚‹ã¨ã‹ã€‚
> 
> ã©ã†ã§ã—ã‚‡ã†ï¼Ÿ \> knuã•ã‚“ã€‚

ã€€ç¢ºã‹ã«ä¸è¦ãã†ã§ã™ã­ã€‚ã‚³ãƒŸãƒƒãƒˆã—ã¦ãã ã•ã„ã€‚

---

<div class="post-metadata">

**Author:** ![Yukihiro\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c57346/32.png) [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Post date:** [March 15, 2008, 8:19am UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825/5 "2008-03-15T08:19:51Z")

</div>

e$BEOJUE/Li$G$9!#e(B

ruby 1.9 trunk r15781 e$B$G;n$7$F$\_$^$7$?!#e(B  
e$BFC$KLdBj$J$/F0$-$^$7$?!#e(B

HP-UX 11.23  
e$B%3%s%Q%$%k$Oe(B 64bit e$B%b!\<%Ie(B(CFLAGS=“-O +DD64”)

e$B%F%9%H$Oe(B make test e$B$re(B 10 e$B2s7+$jJV$7!#e(B

In message “[ruby-dev:34058] Re: Ruby performance gains on SPARC”  
on 08/03/15, Yukihiro M. e$B$5$se(B writes:

|e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B  
|  
|In message “Re: [ruby-dev:34057] Re: Ruby performance gains on SPARC”  
| on Sat, 15 Mar 2008 01:34:03 +0900, Tanaka A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:  
|  
||1.8 e$B$He(B 1.9 e$B$G;n$7$F$\_$^$7$?$,!“e(Bmake test, test-all e$B$O$H$/$Ke(B  
||e$BJQ2=$7$^$;$s$M!#e(B  
|  
|e$B$”$j$,$H$&$4$6$$$^$9!#e(B  
|  
||e$B$“$H$O!”$=$Ne(B 2e$B2U=j$Ke(B FLUSH\_REGISTER\_WINDOWS e$B$rF~$l$?e(B knu e$B$5e(B  
||e$B$s$K?R$M$k$H$+!#e(B  
|  
|e$B$I$&$G$7$g$&!)e(B \> knue$B$5$s!#e(B
