[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TC question



        For those of us who occationaly worry about efficiency, code size, etc.
        how does one go about finding out what the functions the compiler open
        codes?  Is there a list somewhere that tells?
    
    No.  There probably ought to be.  However, the list would change with
    each release, so it would be a pain to maintain.  In the meantime,
    when the occation strikes, do
    
    (DEFINE (KLUDGE? PROC-NAME)
      (TRUE? (OR ((*VALUE *TC-ENV* 'CGET) PROC-NAME 'PRIMOP)
                 ((*VALUE *TC-ENV* 'INTEGRABLE-PROCEDURE-DEFINITION) PROC-NAME))))
    
    where PROC-NAME is a symbol.  This should work in T 2.7 / TC 1.4.
    
This is not quite correct.  Integrable-procedure-defintion will return
#{Empty} if it finds no definition.  Since this is non-null, kludge?
always returns T.  How does one test for #{Empty}???