Hello, two questions:
1. Is there any way to access the compiler's type information?
I wrote this inline C facility that works for CMUCL and SBCL:
I'd like to avoid having to write:
defun echo (str)
(declare (string str)) ; <-- these two are
(cinline ((char* str :in)) ; <-- are redundant
printf ("%s\n", $str);
2. Is it possible to change the numeric tower for a piece of lisp code?
For example, I might not care about overflows in a given piece of code
and I'd like the compiler to only use C's subset of the numeric tower.
Failing that, can I have the compiler automatically insert the
appropriate declaration or "the" form when it gives me an efficiency
On 13. Feb 2006, at 03:33, Yury Sulsky wrote:
> 2. Is it possible to change the numeric tower for a piece of lisp
> For example, I might not care about overflows in a given piece of code
> and I'd like the compiler to only use C's subset of the numeric tower.
Check out http://www.sbcl.org/manual/Modular-arithmetic.html
Get latest updates about Open Source Projects, Conferences and News.