Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Timing Ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] Timing Ocaml

>* The GNU C compiler gcc is recommended, as the bytecode
>   interpreter takes advantage of gcc-specific features to enhance
>   performance.
>What is the nature of these optimizations?

GCC lets you take the address of a label.  You can see in byterun/interp.c 
that it uses a jump table instead of a switch when you're using GCC.

At least, that's what it looks like.

Chris

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners