Changes between Initial Version and Version 1 of CrossCompiling


Ignore:
Timestamp:
02/04/11 03:09:06 (3 years ago)
Author:
rme
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CrossCompiling

    v1 v1  
     1= Cross Compiling = 
     2 
     3Notes on setting up for cross-compilation using Linux/ARM as 
     4an example. 
     5 
     6Put the following forms into a .lisp file and load it to set up the cross-compiler. 
     7{{{ 
     8(require-update-modules *arm-compiler-modules* t) 
     9(require-update-modules *arm-compiler-backend-modules* t) 
     10(require-update-modules *arm-xdev-modules* t) 
     11(defpackage "ARM-LINUX") 
     12(load "ccl:lib;ffi-linuxarm") 
     13(require-update-modules *arm-xload-modules* t) 
     14(setup-arm-ftd (find-backend :linuxarm)) 
     15}}} 
     16 
     17Grab the interfaces for the target of interest and put them in the 
     18usual place ccl directory.  In the Linux/ARM case, that would be 
     19ccl:arm-headers;.  If your host uses different byte order than the target, you might have to 
     20set up some sort of cross-interfaces (left as an exercise for the reader). 
     21 
     22Actually compile: 
     23{{{ 
     24(cross-xload-level-0 :linuxarm :force) 
     25(cross-compile-ccl :linuxarm t) 
     26}}}