Lisp Knowledgebase

Title: Function size ... is too large.

ID: 17022

Product: LispWorks for Linux, LispWorks for Windows
Version: 4.1, 4.2, 4.3, 4.4
OS: All

There is an architectural limit on the size of a compiled function in very old versions of LispWorks on x86 platforms, where the maximum function size is 64Kb of code.

If you attempt to compile a very large function you will see an error like this:

 **++++ Error in CL-USER::FOO:
   Function size 74279 is too large.

There are several ways to try to work around this
  • Compile the function at lower safety and debug optimization levels. This might reduce the size sufficiently
  • Call (toggle-source-debugging nil) before compiling. This might reduce the size sufficiently
  • Rewrite the function as several smaller functions.

    Note: Lispworks for Unix uses a different tagging scheme and memory layout, and does not have a limit on function size.

    Note: LispWorks 5.0 and later versions do not place a limit on function size, on all platforms.

  • See Also:

    Patch Enhancement#:

    Company     Contact     Privacy Policy     Terms of Use