Nimrod renamed to Nim
This commit is contained in:
parent
c95e47216f
commit
3ea6446900
30 changed files with 379 additions and 379 deletions
10
doc/gc.txt
10
doc/gc.txt
|
|
@ -1,9 +1,9 @@
|
|||
==========================
|
||||
Nimrod's Garbage Collector
|
||||
Nim's Garbage Collector
|
||||
==========================
|
||||
|
||||
:Author: Andreas Rumpf
|
||||
:Version: |nimrodversion|
|
||||
:Version: |nimversion|
|
||||
|
||||
"The road to hell is paved with good intentions."
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ it is necessary to help this analysis with the ``acyclic`` pragma (see
|
|||
|
||||
You can also use the ``acyclic`` pragma for data that is cyclic in reality and
|
||||
then break up the cycles explicitly with ``GC_addCycleRoot``. This can be a
|
||||
very valuable optimization; the Nimrod compiler itself relies on this
|
||||
very valuable optimization; the Nim compiler itself relies on this
|
||||
optimization trick to improve performance. Note that ``GC_addCycleRoot`` is
|
||||
a quick operation; the root is only registered for the next run of the
|
||||
cycle collector.
|
||||
|
|
@ -49,7 +49,7 @@ Realtime support
|
|||
To enable realtime support, the symbol `useRealtimeGC`:idx: needs to be
|
||||
defined. With this switch the GC supports the following operations:
|
||||
|
||||
.. code-block:: nimrod
|
||||
.. code-block:: nim
|
||||
proc GC_setMaxPause*(MaxPauseInUs: int)
|
||||
proc GC_step*(us: int, strongAdvice = false)
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ highly specialized environments or for older hardware.
|
|||
Keeping track of memory
|
||||
-----------------------
|
||||
|
||||
If you need to pass around memory allocated by Nimrod to C, you can use the
|
||||
If you need to pass around memory allocated by Nim to C, you can use the
|
||||
procs ``GC_ref`` and ``GC_unref`` to mark objects as referenced to avoid them
|
||||
being freed by the GC. Other useful procs from `system <system.html>`_ you can
|
||||
use to keep track of memory are:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue