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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: malc <malc@p...>
Subject: Native code compiler
Can someone please explain me why ocamlopt spends so much time compiling
one of examples in lablGL(and some of my code which was based on this
example)

---
[malc@oyster examples]$ time ocamlc.opt -labels -I /usr/lib/ocaml/labltk
-I /usr/lib/ocaml/lablGL labltk.cma lablgl.cma togl.cmo gears.ml 

real    0m1.957s
user    0m1.400s
sys     0m0.540s
[malc@oyster examples]$ time ocamlopt.opt -labels -I /usr/lib/ocaml/labltk
-I /usr/lib/ocaml/lablGL labltk.cmxa lablgl.cmxa togl.cmx gears.ml 

real    1m35.531s
user    1m31.760s
sys     0m0.800s

[malc@oyster examples]$ uname -a
Linux oyster 2.2.14-5.0 #5 Sat May 13 06:34:58 MSD 2000 i586 unknown

[malc@oyster examples]$ ocamlc -v
The Objective Caml compiler, version 3.00
Standard library directory: /usr/lib/ocaml
---

Im at the point where i can no longer afford bytecode(and if nothing else
id have to resort to C++, which is pretty disgusting idea), so any hints
will be greatly apreciated.

-- 
mailto:malc@pulsesoft.com