On Thu, Dec 1, 2011 at 11:22 PM, Juan Jose Garcia-Ripoll <
juanjose.garciarip...@googlemail.com> wrote:

> ECL now inlines forms with constant arguments.


BTW, this also means that now ECL should be able to eliminate dead code
branches, such as

(if (plusp (cos 1.0)) some-code some-unreachable-code))

See:

> (disassemble '(lambda (x) (if (plusp (cos 1.0)) (print 'hola) (error))))

;;; Compiling (DEFUN C::GAZONK ...).
;;; Warning:
;;;   ! The variable X is not used.
;;; Emitting code for C::GAZONK.
/* function definition for GAZONK                                */
/* optimize speed 3, debug 0, space 0, safety 2                  */
static cl_object L1c__gazonk(cl_object V1)
{ VT2 VLEX2 CLSR2 STCK2
 const cl_env_ptr cl_env_copy = ecl_process_env();
cl_object value0;
ecl_cs_check(cl_env_copy,value0);
 {
TTL:
value0=ecl_print(VV[2],Cnil); cl_env_copy->nvalues=1;
 return value0;
}}
NIL


-- 
Instituto de FĂ­sica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to