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] Annoying compiler magic
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-13 (00:27)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Annoying compiler magic
> This is a -custom- environment. The question is, why is the compiler
> adding references to these symbols when my code (stdlib.cma &
> libcamlrun.a) does NOT reference these.

You guys make life fun ;-) (Yes, note the sarcasm). So you define
these external functions INTO the compiler itself... an interesting

Looks like I'll have to figure out how to break up the build system to
build JUST the ocamlc compiler and nothing else; use system tools for
everything else.

Is this to ensure your particular implementation of stdlib is
guaranteed to work? As I noticed an interesting error when trying to
build a custom compiler the naive way:

Error while linking ../../stdlib/stdlib.cma(Pervasives):
The external function `caml_ml_input' is not available

Anyways, I assume you did it like this for a good reason.

Jonathan =)