Version française
Home     About     Download     Resources     Contact us    
Browse thread
Native code compile time question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Raj Bandyopadhyay <rajb@r...>
Subject: Native code compile time question
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