From c1f476b8170112aaf0a1377ec40eced327c78e9b Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 14 Nov 2002 11:46:30 +0000 Subject: [PATCH] [project @ 2002-11-14 11:46:30 by simonmar] Add a new question to the FAQ: "Do I need to recompile all my code if I upgrade GHC?". --- ghc/docs/users_guide/faq.sgml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/ghc/docs/users_guide/faq.sgml b/ghc/docs/users_guide/faq.sgml index 8055d15..51f6d5a 100644 --- a/ghc/docs/users_guide/faq.sgml +++ b/ghc/docs/users_guide/faq.sgml @@ -45,6 +45,34 @@ + Do I have to recompile all my code if I upgrade + GHC? + + Yes. There are two reasons for this: + + + GHC does a lot of cross-module optimisation, so + compiled code will include parts of the libraries it was + compiled against (including the Prelude), so will be + deeply tied to the actual version of those libraries it + was compiled against. When you upgrade GHC, the libraries + may change; even if the external interface of the + libraries doesn't change, sometimes internal details may + change because GHC optimised the code in the library + differently. + + + We sometimes change the ABI (application binary + interface) between versions of GHC. Code compiled with + one version of GHC is not necessarily compatible with code + compiled by a different version, even if you arrange to + keep the same libraries. + + + + + + Why doesn't GHC use shared libraries? The subject of shared libraries has come up several -- 1.7.10.4