Browse thread
Native code compile time question
- Raj Bandyopadhyay
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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