On Fri, 19 Nov 2004, Thibault Langlois wrote:

>
>
> Hello,
>
> Is it possible to use a same core file on several platforms ?
> I made a core file with cmucl 19a / Linux for someone who is using Solaris. He
> gets the following error when running my core file:
>
> Invalid magic number: 0x45524f43 should have been 0x434f5245
>
> Thibault
>
> PS: I am using 19a pre3 and he is using 19a.

Core files dumped with ext:save-lisp in cmucl is in fact really binary 
executables, and contains compiled code (machine code that is) and 
datastructures formated for the architechture. This means that you can't use 
the 
core file generated on Linux, because it contains the wrong kind of machine 
code, probably the wrong endianess, and other differences. In fact, it won't 
even work between different versions of cmucl (eg 18e and 19a). In other words, 
the core must be from the same os/architechture and have the same version 
number.

For other lisp systems that not compiles to native code, like clisp, it may be 
that what you tries to do will work, since those cores don't contain machine 
code. I would not bet though, since there may be other differences, like word 
size and endianess and other things that makes them incompatibe

In general, core files is not compatible between operating systems!


-- 
Gisle S�lensminde, Phd student, Scientific programmer
Computational biology unit, University of Bergen, Norway
Email: [EMAIL PROTECTED]


Reply via email to