Andreas Rumpf
cb1c621a05
Merge pull request #2426 from def-/fix-1460
...
Fix #1460
2015-04-09 09:36:18 +02:00
def
39049e151f
Get rid of deprecation warnings
2015-04-07 15:47:18 +02:00
Jacek Sieka
c40249cd43
compiler_ropes: ropeToStr -> $
2015-04-01 22:32:15 +08:00
def
07351d5f37
Initialize c compiler variables later ...
...
... so that symbols such as "cpp" are defined
Fixes #1460
2015-03-28 15:07:55 +01:00
Araq
5641be51c1
codegen doesn't produce line tracing commands anymore; fixes #1344
2015-03-21 20:38:27 +01:00
Araq
910ef7b2d1
'constructor' pragma for C++ support
2015-03-18 11:42:37 +01:00
Araq
1fc590b6ea
don't generate memset calls for C++ objects
2015-03-18 11:42:36 +01:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Araq
74c6c8c903
compiler distinguishes between 2 different 'var' types for C++ interop; code cleanups
2015-02-07 10:48:07 +01:00
Araq
e84834db79
lots of C++ codegen improvements
2015-02-07 10:48:07 +01:00
Araq
e75e421912
C++ support: codegen generates C++'s references and avoids copies
2015-02-04 00:52:45 +01:00
Araq
6004280522
preparations for C++ template support
2015-01-23 00:36:58 +01:00
Guillaume Gelin
3119fe087d
Happy new year!
2015-01-06 15:26:33 +01:00
Araq
c2b223688d
fixes #1539
2014-11-27 09:41:36 +01:00
Araq
83c655266d
more robust against unknown line info
2014-11-22 23:09:50 +01:00
Araq
326bdae8ca
fixes #837
2014-11-21 02:26:49 +01:00
Araq
37cc9b2226
fixes #1181
2014-11-13 19:07:27 +01:00
Araq
af84f754b0
proper fix for stack initialization and threadvar emulation
2014-11-11 09:55:31 +01:00
Reimer Behrends
ead00d2328
Properly initialize the stack with emulated thread variables.
2014-11-06 02:09:51 +01:00
Araq
fc47c0edc7
Merge branch 'devel' of https://github.com/Araq/Nimrod into bigbreak
...
Conflicts:
lib/impure/db_postgres.nim
lib/pure/os.nim
lib/wrappers/postgres.nim
2014-10-04 19:40:23 +02:00
Araq
e65c296bcc
implemented mixed mode codegen
2014-10-03 01:21:35 +02:00
Reimer Behrends
f99c40f61b
Improve setjmp()/longjmp() performance.
...
Exception handling for the C backend used setjmp()/longjmp()
unconditionally. However, on POSIX systems, these functions save and
restore the signal mask, adding considerable overhead to exception
handling, even where no exceptions are involved. The compiler and
library now try to use either _setjmp()/_longjmp() or
sigsetjmp()/siglongjmp() where possible, marked by the defines
"nimRawSetjmp" and "nimSigSetjmp", respectively. The define
"nimStdSetjmp" can be used to revert to setjmp()/longjmp() instead.
2014-09-25 23:29:02 +02:00
Araq
7916b1f9aa
implemented 'guard' annotation
2014-09-21 18:39:00 +02:00
Araq
bf557a7cdb
added nimfix tool
2014-09-05 01:16:48 +02:00
Araq
2781fea9e2
Nimrod renamed to Nim
2014-08-28 09:38:14 +02:00
Araq
df172806ea
big rename
2014-08-28 00:24:52 +02:00
Andreas Rumpf
d8f6a2adcb
Merge pull request #1481 from rbehrends/fix-stackscan2
...
Fix stack bottom initialization for non-main modules.
2014-08-14 09:16:26 +02:00
Reimer Behrends
d59b9a2168
Fix stack bottom initialization for non-main modules.
...
Because PreMain() was now called before the new stack bottom
initialization, it still relied on the old version of initStackBottom(),
which may not handle the top few words of the stack correctly. This
patch also sets the stack bottom in PreMain() using the new approach.
2014-08-14 03:09:39 +02:00
Araq
c812a616b2
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-14 02:44:53 +02:00
Reimer Behrends
a772105e7d
Fixed stack bottom initialization for DLLs.
2014-08-14 02:10:28 +02:00
Araq
27b9d10570
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
2014-08-14 00:02:39 +02:00
Araq
f3d530e482
fixes #1434
2014-08-14 00:02:24 +02:00
Andreas Rumpf
1d19c9525e
Merge pull request #1400 from rbehrends/fix-stackscan
...
More robust implementation for finding the beginning of the stack.
2014-08-13 20:17:16 +02:00
Araq
9673e4f2df
progress on deepCopy
2014-08-01 23:40:48 +02:00
Reimer Behrends
15734009ca
More robust implementation for finding the beginning of the stack.
...
This patch inserts an extra stack frame above the function that
calls the actual Nimrod code and ensures that a reference to this
frame is stored as the stack bottom.
2014-07-23 03:20:50 +02:00
Reimer Behrends
55e7d91b31
Fix generation of package-dependent init names.
...
The code incorrectly used relative instead of absolute paths to
see if *.babel files could be found, which could result in them
not being located properly.
Also added an underscore between the package and the module name
for package_moduleInit() and package_moduleDatInit() so that there
won't be spurious conflicts, e.g. for package A and module BC vs.
package AB and module C.
2014-06-25 00:42:55 +02:00
Andreas Rumpf
2ec1501c7a
Merge pull request #1281 from Araq/new_spawn
...
New spawn
2014-06-16 23:03:17 +02:00
Araq
15909c7be2
optimized method dispatchers
2014-06-12 16:05:50 +02:00
Araq
be229163af
Merge branch 'new_spawn' of https://github.com/Araq/Nimrod into new_spawn
2014-06-01 22:00:06 +02:00
EXetoC
f66f43bca0
Fix more 'undeclared identifier' errors.
2014-05-14 18:12:47 +02:00
Araq
c43e8df90c
progress for the 'parallel' statement
2014-05-14 01:51:44 +02:00
Araq
5e839d50b4
fixes DLL generation
2014-04-21 03:44:48 +02:00
Araq
8e08ff559f
first version of 'spawn'
2014-04-16 08:44:57 +02:00
Zahary Karadjov
862c0ef83d
split the inline and closure iterators into different symbol kinds for easier discrimination between them
2014-03-06 21:57:35 +02:00
Zahary Karadjov
5324c9ebba
iterators now return tyIter(T);
...
tyIter(T) represents an "iteration yielding values of type T"
I'm planning to use that in the context of the `is` operator
supporting predicates such as `C.items is iterator` and also
in the upcoming support for higher-order inline iterators.
2014-03-05 02:23:53 +02:00
Araq
614557994e
the compiler is now aware of packages
2014-03-02 23:46:20 +01:00
Araq
2f692dcc3a
make C backend more robust against compiler bugs
2014-02-27 20:39:34 +01:00
Zahary Karadjov
e6b0b7ecc9
some fixes for static params usage in macros
2014-02-25 01:36:08 +02:00
Zahary Karadjov
9dec669b94
nest PreMain inside NimMain for easier consumption of static libraries developed in Nimrod
...
fixes many uses of $N instead of $n for new lines that don't affect #line directives
2014-01-23 00:01:15 +02:00
Araq
73c6efdf66
'nil' as a statement is deprecated, use an empty 'discard' instead
2014-01-19 16:54:59 +01:00