Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tarn Burton
cmucl
Commits
a95cfea8
Commit
a95cfea8
authored
14 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
o Add entry for ld-library-path search-list.
o Add documentation for static arrays.
parent
79044f0e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/cmu-user/extensions.tex
+51
-1
51 additions, 1 deletion
docs/cmu-user/extensions.tex
with
51 additions
and
1 deletion
docs/cmu-user/extensions.tex
+
51
−
1
View file @
a95cfea8
...
...
@@ -1561,7 +1561,7 @@ built:
variable).
\item
[\code{path:}]
The Unix command path (
\code
{
PATH
}
environment variable).
\item
[\code{ld-library-path:}]
The Unix
\code
{
LD
_
LIBRARY
_
PATH
}
\item
[\code{ld-library-path:}]
The Unix
\code
{
LD
\
_
LIBRARY
\
_
PATH
}
environment variable.
\item
[\code{target:}]
The root of the tree where
\cmucl
{}
was compiled.
\item
[\code{modules:}]
The list of directories where
\cmucl
{}
's
...
...
@@ -3007,3 +3007,53 @@ For further information, we refer the reader to documentation on
gettext at
\href
{
http://www.gnu.org/software/gettext/manual/gettext.html
}{
\texttt
{
http://www.gnu.org/software/gettext/manual/gettext.html
}}
.
\fi
\section
{
Static Arrays
}
\label
{
sec:static-arrays
}
\cmucl
{}
supports static arrays which are arrays that are not moved by
the garbage collector. To create such an array, use the
\kwd
{
allocation
}
option to
\code
{
make-array
}
with a value of
\kwd
{
malloc
}
. These arrays appear as normal Lisp arrays, but are
actually allocated from the
\code
{
C
}
heap (hence the
\kwd
{
malloc
}
).
Thus, the number and size of such arrays are limited by the available
\code
{
C
}
heap.
Also, only certain types of arrays can be allocated. The static array
cannot be adjustable and cannot be displaced to. The array must also
be a
\code
{
simple-array
}
of one dimension. The element type is also
constrained to be one of the types in
Table~
\ref
{
tbl:static-array-types
}
.
\begin{table}
[tbhp]
\begin{center}
\begin{tabular}
{
|c|
}
\hline
\code
{
(unsigned-byte 8)
}
\\
\hline
\code
{
(unsigned-byte 16)
}
\\
\hline
\code
{
(unsigned-byte 32)
}
\\
\hline
\code
{
(signed-byte 8)
}
\\
\hline
\code
{
(signed-byte 16)
}
\\
\hline
\code
{
(signed-byte 32)
}
\\
\hline
\code
{
single-float
}
\\
\hline
\code
{
double-float
}
\\
\hline
\code
{
(complex single-float)
}
\\
\hline
\code
{
(complex double-float)
}
\\
\hline
\end{tabular}
\caption
{
Allowed element types for static arrays
}
\label
{
tbl:static-array-types
}
\end{center}
\end{table}
The arrays are properly handled by GC. GC will not move the arrays,
but they will be properly removed up if they become garbage.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment