caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* assembly
@ 1999-10-24 19:45 Hongwei Xi
  1999-10-26 17:31 ` assembly Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Hongwei Xi @ 1999-10-24 19:45 UTC (permalink / raw)
  To: caml-list

Hi,

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?

Thanks!

--Hongwei

\~~~~/ \\   //  \\    //    @       Mail: hwxi@ececs.uc.edu
C-o^o,  ))__||   \\__//_  // \\     Url: http://www.ececs.uc.edu/~hwxi
(  ^ )  ))__||    \--/-\\     \\    Tel: +1 513 871 4947 (home)
/ \V\   ))  ||     //   \\     \\   Tel: +1 513 556 4762 (office)
------ //   || o  //     \\     \\//Fax: +1 513 556 7326 (department)
Rhodes Hall 811-D
Department of ECE & CS  
University of Cincinnati
P. O. Box 210030
Cincinnati, OH 45221-0030




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

* Re: assembly
  1999-10-24 19:45 assembly Hongwei Xi
@ 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

* GC time
  1999-10-26 17:31 ` assembly Xavier Leroy
@ 1999-10-29  4:21   ` Hongwei Xi
  0 siblings, 0 replies; 3+ messages in thread
From: Hongwei Xi @ 1999-10-29  4:21 UTC (permalink / raw)
  To: caml-list

Hi,

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

Thanks!

--Hongwei

\~~~~/ \\   //  \\    //    @       Mail: hwxi@ececs.uc.edu
C-o^o,  ))__||   \\__//_  // \\     Url: http://www.ececs.uc.edu/~hwxi
(  ^ )  ))__||    \--/-\\     \\    Tel: +1 513 871 4947 (home)
/ \V\   ))  ||     //   \\     \\   Tel: +1 513 556 4762 (office)
------ //   || o  //     \\     \\//Fax: +1 513 556 7326 (department)
Rhodes Hall 811-D
Department of ECE & CS  
University of Cincinnati
P. O. Box 210030
Cincinnati, OH 45221-0030





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

end of thread, other threads:[~1999-10-29 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-24 19:45 assembly Hongwei Xi
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).