/[cmucl]/src/contrib/CATALOG.TXT
ViewVC logotype

Diff of /src/contrib/CATALOG.TXT

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ram, Thu Feb 20 18:25:05 1992 UTC revision 1.2 by rtoy, Tue Aug 18 13:51:06 2009 UTC
# Line 191  Bugs: Line 191  Bugs:
191  exported.  You must run in the ops package.  exported.  You must run in the ops package.
192    
193    
 Package Name:  
    PROFILE  
   
 Description:  
    Provides macros to do simple code profiling things.  
   
 Author:  
    Skef Wholey  
    Rob MacLachlan  
   
 Address:  
    Carnegie-Mellon University  
    Computer Science Department  
    Pittsburgh, PA 15213  
   
 Net Address:  
    ram@cs.cmu.edu  
   
 Copyright Status:  
    Public Domain  
   
 Files:  
    profile.lisp, profile.fasl, profile.doc, profile.catalog  
   
 How to Get:  
    The following unix command will copy the pertinent files into directory  
 <spec>:  
    cp /afs/cs.cmu.edu/project/slisp/library/profile/* <spec>  
   
 Portability:  
    Should run in any Common Lisp.  Someone porting this may want to change a  
 few things mentioned in profile.lisp to tune it to another implementation.  
   
 Instructions:  
    See the file profile.doc for details.  
   
   
194  Name:  Name:
195     PSgrapher     PSgrapher
196    
# Line 289  Examples: Line 252  Examples:
252                                            :direction :output                                            :direction :output
253                                            :if-exists :supersede)                                            :if-exists :supersede)
254           (psgraph:psgraph s #'psg-children #'psg-info shrink insert #'eq))))           (psgraph:psgraph s #'psg-children #'psg-info shrink insert #'eq))))
255    
256    Package Name:
257       EMBEDDED-C
258    
259    Description:
260       This package provides a macro to embed compiled C code in a Lisp
261       fasl file.  It's inspired by the GForth FFI.
262    
263    Author:
264       Helmut Eller
265    
266    Address:
267    
268    Net Address:
269    
270    
271    Copyright Status:
272       Public Domain.
273    
274    Files:
275       embedded-c.lisp, embedded-c.catalog
276    
277    How to Get:
278       This version is a possibly updated version of the code that was
279       sent to cmucl-imp mailing list on 2008/12/13.
280    
281    Portability:
282       Somewhat portable, but depends on CMUCL-specific features.
283    
284    Instructions:
285       Here is an example:
286    
287         (define-c-code (*example*)
288          "#include <stdio.h>"
289    
290          (defstub hello ((msg :string))
291            "printf(\"Hello, World!\\n%s\", msg);"
292            "fflush(0);")
293    
294          "#include <sys/types.h>"
295          "#include <sys/wait.h>"
296          (defstub exitedp ((status :int) => :int)
297            "return WIFEXITED(status);"))
298    
299       HELLO and EXITEDP are the names for lisp functions which call the
300       corresponding C code.  It's quite convenient to access C macros in
301       this manner.
302    
303       DEFINE-C-CODE invokes the C compiler on the body and embeds the
304       object code as a byte vector in the Lisp code.  At load time, the
305       byte vector is passed to dlopen and callout functions to the C
306       functions are initialized.
307    
308       The above example creates two functions callable from Lisp: HELLO
309       and EXITEDP.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.5