inline declarations

Greg Bennett <[email protected]>
Newsgroups gmane.lisp.steel-bank.devel
Message-ID <[email protected]>
Apologies if this is a re-post; mailer problems at my end

I am porting a large project in which there are a significant number of 
calls to inline functions.
I have been using

(declaim (sb-ext:maybe-inline zot))
(defun zot (x y) ...)

without complaint from the compiler at this combination.

However, I did run into:
*inline-expansion-limit* (50) was exceeded while inlining zot

So I increased the (default) 50 to 100 and tried again, only to receive:

; note: *INLINE-EXPANSION-LIMIT* (100) was exceeded while inlining 
LOG-GAMMA
;Heap exhausted during garbage collection: 8144 bytes available, 8208 
requested.

At other junctures I get:

; caught STYLE-WARNING:
;   Call to QUAIL-KERNEL::INCOMPLETE-BETA-CF could not be inlined 
because its
;   source code was not saved. A global INLINE or SB-EXT:MAYBE-INLINE 
proclamation
;   must be in effect to save function definitions for inlining.

I am unsure of the form of the global INLINE, and where it should be 
issued.

Any advice/assistance on inlining will be much appreciated.

Cheers
Greg Bennett

_______________________________________________
Sbcl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.