caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Native code compile time question
@ 2008-09-05 16:26 Raj Bandyopadhyay
  2008-09-05 21:32 ` [Caml-list] " Basile STARYNKEVITCH
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Raj Bandyopadhyay @ 2008-09-05 16:26 UTC (permalink / raw)
  To: caml-list

Hi all

I am implementing a language by generating OCaml code for input source 
and using the OCaml native code compiler. However, I've run into a 
strange problem.

On using my code generator on a large program, I generate a file 
containing about 75K lines of OCaml. The native code compiler takes more 
than 30 *minutes* to compile this file!  The bytecode compiler takes 
about 5 secs.

I ran the native code compiler without any -inline or other 
optimizations and its still the same.

For smaller OCaml files, the compilation time is ok for me. For example, 
it takes about 12 seconds to compile a 15K line OCaml file.

Any ideas why this might be happening and how I can deal with this?

Thanks
Raj


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

end of thread, other threads:[~2008-09-06 10:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-05 16:26 Native code compile time question Raj Bandyopadhyay
2008-09-05 21:32 ` [Caml-list] " Basile STARYNKEVITCH
2008-09-05 22:46   ` Jon Harrop
2008-09-05 22:44 ` Jon Harrop
2008-09-06 10:01 ` Richard Jones
2008-09-06 10:38 ` Christophe TROESTLER

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).