English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] "No bytecode specified"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-26 (10:00)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] "No bytecode specified"
> Alternatively, strip can be fixed to know about ocaml bytecode.

I wouldn't recommend that -- if I were the maintainer of "strip", I'd
scream at such a kludge :-)

> I was also told that if the ocaml team would have used another
> label/tag/whatever it is called in the binary code than the one it is
> using, then strip would know about it.

Yes, a cleaner solution would be to embed the OCaml bytecode in a
special ELF section.  But there are two problems with this: 1- the ELF
file format is quite complex, and 2- this solution would break utterly
on non-ELF systems, e.g. Windows.

The current solution (just stick the bytecode at the end of the native
executable) is a hack, but it's a hack that works on *every single
platform* I've tested in the last 12 years...

- Xavier Leroy
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners