On Tue, Feb 1, 2011 at 3:02 PM, Marko Kocić <marko.kocic@gmail.com> wrote:
I have lisp file some.lisp which have the following at the beginning:

(declaim (optimize (speed 3) (safety 0) (debug 0)))

When I call (compile-file "some.lisp"), declarations in file are
ignored while compiling file.

I just checked with a toy example (see below) and the code is indeed generated differently when I change the declaim statement in the file. Do those problems still persist in your copy of ECL?


(declaim (optimize (speed 3) (safety 0) (debug 0)))
(defun faa (x)
 (print (cos x)))

Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)