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
Assembly labels overflow
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-05-02 (11:59)
From: Geoffroy <c.geoffroy@g...>
Subject: Assembly labels overflow

I am currently working on a tool which is generating a lot of ocaml code.
The problem comes during compilation : due to the amount of source code or
the length of function, i got some "already define symbol" error when the
camlasm is build. Basically assembly labels appear more than one time.

To avoid this i decided to split my generated ocaml code in several small
pack (down to 5 functions by .ml files) and to use the "-compact" option.
With this the problem was push back a little.

But now i am once again facing this problem and i didn't have any more idea
for it.

So i wanted to know if someone got enough knowledge in ocaml internal to
explain me the perfect form for function to minimise the label production
during assembly generation.