caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re:  GC time
@ 1999-11-08 12:59 Damien Doligez
  1999-11-08 17:54 ` Markus Mottl
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Doligez @ 1999-11-08 12:59 UTC (permalink / raw)
  To: caml-list

>From: Hongwei Xi <hwxi@ececs.uc.edu>

>It there a (simple) way for me to measure the GC time
>spent on executing ocamlopt-generated native code or
>ocaml bytecode?

Not yet.  We may include GC timers in a future release of O'Caml, but
starting and stopping the timer takes almost as much time as the GC
itself, so you'll take a performance hit and the accuracy of the
timings will not be very good.

-- Damien



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: assembly
@ 1999-10-26 17:31 Xavier Leroy
  1999-10-29  4:21 ` GC time Hongwei Xi
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Leroy @ 1999-10-26 17:31 UTC (permalink / raw)
  To: Hongwei Xi, caml-list

> Could someone tell me how to compile assembly code
> generated by ocamlopt?
> 
> I am doing some experiment. I have generated some
> assembly code using ocamlopt and modified it. Now
> I'd like to compile the modified code. What object
> files are needed for doing this?

If you run ocamlopt with the -verbose option, it will display all the
calls to the assembler and the linker that it performs.  In
particular, you'll see what assembler flags are used on your platform.

I'd guess that something like the below should work:

        ocamlopt -S -c foo.ml
        <transform foo.s>
        as <machine-dependent options> -o foo.o foo.s
        ocamlopt -o myprog foo.cmx

Hope this helps,

- Xavier Leroy




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

end of thread, other threads:[~1999-11-08 18:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-08 12:59 GC time Damien Doligez
1999-11-08 17:54 ` Markus Mottl
  -- strict thread matches above, loose matches on Subject: below --
1999-10-26 17:31 assembly Xavier Leroy
1999-10-29  4:21 ` GC time Hongwei Xi

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