corrected backends.txt

This commit is contained in:
Araq 2014-06-30 19:39:57 +02:00
commit b89495ef0f
4 changed files with 20 additions and 15 deletions

View file

@ -9,6 +9,13 @@
## This module implements the code generator for the VM. ## This module implements the code generator for the VM.
# Important things to remember:
# - The VM does not distinguish between definitions ('var x = y') and
# assignments ('x = y'). For simple data types that fit into a register
# this doesn't matter. However it matters for strings and other complex
# types that use the 'node' field; the reason is that slots are
# re-used in a register based VM. XXX Come up with an example.
import import
unsigned, strutils, ast, astalgo, types, msgs, renderer, vmdef, unsigned, strutils, ast, astalgo, types, msgs, renderer, vmdef,
trees, intsets, rodread, magicsys, options, lowerings trees, intsets, rodread, magicsys, options, lowerings

View file

@ -1,8 +1,8 @@
Advanced commands: Advanced commands:
//compileToC, cc compile project with C code generator, see `Backend language options`_ //compileToC, cc compile project with C code generator
//compileToCpp, cpp compile project to C++ code, see `Backend language options`_ //compileToCpp, cpp compile project to C++ code
//compileToOC, objc compile project to Objective C code, see `Backend language options`_ //compileToOC, objc compile project to Objective C code
//js compile project to Javascript, see `Backend language options`_ //js compile project to Javascript
//rst2html convert a reStructuredText file to HTML //rst2html convert a reStructuredText file to HTML
//rst2tex convert a reStructuredText file to TeX //rst2tex convert a reStructuredText file to TeX
//jsondoc extract the documentation to a json file //jsondoc extract the documentation to a json file

View file

@ -6,12 +6,7 @@
:Version: |nimrodversion| :Version: |nimrodversion|
.. contents:: .. contents::
"Heresy grows from idleness." -- Unknown.
"If we all reacted the same way, we'd be predictable, and there's
always more than one way to view a situation. What's true for the
group is also true for the individual. It's simple: overspecialize,
and you breed in weakness. It's slow death." -- Major Motoko
Kusanagi
Introduction Introduction
@ -160,7 +155,7 @@ Create a ``calculator.nim`` file with the following content:
.. code-block:: nimrod .. code-block:: nimrod
{.compile: "logic.c".} {.compile: "logic.c".}
proc addTwoIntegers(a, b: int): int {.importc.} proc addTwoIntegers(a, b: cint): cint {.importc.}
when isMainModule: when isMainModule:
echo addTwoIntegers(3, 7) echo addTwoIntegers(3, 7)
@ -407,7 +402,8 @@ can then attach a GC to this thread via
initGC() initGC()
At the moment this support is still experimental so you need to expose these At the moment this support is still experimental so you need to expose these
functions yourself or submit patches to request a public API. If the Nimrod functions yourself or submit patches to request a public API.
code you are calling is short lived, another possible solution is to disable
the garbage collector and enable it after the call from your background It is **not** safe to disable the garbage collector and enable it after the
thread. call from your background thread even if the code you are calling is short
lived.

View file

@ -1,6 +1,8 @@
version 0.9.6 version 0.9.6
============= =============
- some table related tests are wrong (memory usage checks)
Concurrency Concurrency
----------- -----------