From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: David LONY <david.lony@pragmadev.com>
Cc: Alain Frisch <alain@frisch.fr>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Interface between Ocaml and Assembler
Date: Fri, 04 Jan 2008 17:58:28 +0100 [thread overview]
Message-ID: <477E65B4.30609@inria.fr> (raw)
In-Reply-To: <477E62C1.8060301@pragmadev.com>
> But it will be easier to make a "bridge" like this one : "asm code" ->
> "C code"->"Ocaml code" ?
Yes, very much easier.
> ld -o test gas.o test.o truc_main.o -L/usr/lib/ocaml/3.09.2/ -lasmrun
> -lm -ldl
>
> /usr/lib/ocaml/3.09.2//libasmrun.a(ints.o): In function
> `caml_int64_of_string':
> (.text+0xb4b): undefined reference to `__udivdi3'
>
> Does anyone has a solution ?
Use "gcc" instead of "ld" for the final linking step.
- Xavier Leroy
prev parent reply other threads:[~2008-01-04 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-04 9:42 David LONY
2008-01-04 9:43 ` [Caml-list] " Alain Frisch
2008-01-04 16:45 ` David LONY
2008-01-04 16:58 ` Xavier Leroy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=477E65B4.30609@inria.fr \
--to=xavier.leroy@inria.fr \
--cc=alain@frisch.fr \
--cc=caml-list@yquem.inria.fr \
--cc=david.lony@pragmadev.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox