OpenMCL kernel build procedure


Table of Contents

Source file organization
Building the OpenMCL kernel for LinuxPPC
Building the OpenMCL kernel for DarwinPPC

Source file organization

The root of the OpenMCL source hierarchy is a directory named ccl; the CVS project and source/binary tar.gz distributions are all intended to create (or overwrite) a ccl directory in the working directory.

The lisp kernel sources reside in ccl/lisp-kernel.

Building the OpenMCL kernel for LinuxPPC

The OpenMCL kernel for LinuxPPC ("ppccl") can be bult with the following standard Linux/GNU development tools:

  • cc - the GNU C compiler (any recent version)

  • ld - the GNU linker (any recent version)

  • m4 - the GNU m4 macro processor (any recent version)

  • as - the GNU assembler (version 2.10.1 or later)

With those tools in place, do:

> cd ccl/lisp-kernel/linux
> make
  

That'll assemble several assembly language source files, compile several C source files, and link ../../ppccl.

Building the OpenMCL kernel for DarwinPPC

The OpenMCL kernel for DarwinPPC ("dppccl") can be bult with the following development tools, which are available from Apple's developer website:

  • cc - Apple's modified version of the GNU C compiler

  • ld - Apple's linker

  • gm4 - the GNU m4 macro processor. Note that the 'm4' program that Apple distributes is a different (and generally less functional) version of m4.

  • as - Apple's modified version of what was once the GNU assembler, a long time ago

I've used the "December 2001 Developer Tools Release" to build OpenMCL; I'm not aware of any significant difference between that release and the October 2001/OSX 10.1 release. I'd be skeptical of earlier versions.

With the tools installed, building the DarwinPPC OpenMCL kernel is a simple matter of doing:

> cd ccl/lisp-kernel/darwin
> make
  

That'll assemble and compile the kernel sources and create the OpenMCL kernel in ccl/dppccl.