caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* What is a match statement translated into?
@ 2007-08-18  6:55 Joel Reymont
  2007-08-18  7:42 ` [Caml-list] " Jacques GARRIGUE
  2007-08-18 10:22 ` Jon Harrop
  0 siblings, 2 replies; 3+ messages in thread
From: Joel Reymont @ 2007-08-18  6:55 UTC (permalink / raw)
  To: Caml List

Folks,

Is pattern-matching code in OCaml expanded into threaded code (pre- 
computed branch table) or something analogous to the C switch  
statement (lots of branching)?

How do I find out?

I suspect this should be quite optimized but I haven't tried dumping  
disassembling native-compiled OCaml yet and I wonder if there's a  
simpler approach.

	Thanks, Joel

--
http://wagerlabs.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-18 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-18  6:55 What is a match statement translated into? Joel Reymont
2007-08-18  7:42 ` [Caml-list] " Jacques GARRIGUE
2007-08-18 10:22 ` Jon Harrop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).