[Ecls-list] Help needed, really

Pascal J. Bourguignon pjb at informatimago.com
Thu Dec 30 14:25:29 UTC 2010

I have no preconceived idea about your problem, however, I will note

Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> writes:

> Since ECL does not really care about the processor type, it is fine
> with it, and just works: it only relies on information provided by the
> compiler, such as type sizes, alignments, and the like, which are
> found at compilation time.

Time of compilation of what?

While for C code, compilation time is a hard boundary, for lisp code it
is less.

(defvar *int-size* 0)
(defvar *example*  0)
(eval-when (:compile-toplevel)
  (defparameter *example*  42)
  (defparameter *int-size* (c:size-of c:int))) ; or whatever syntax

(compile-file "example.lisp")
--> #P"example.fas"

*example*  --> 42
*int-size* --> ?

So it seems to me that ecl could provide the information also at

__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.

More information about the ecl-devel mailing list