Nim/lib/system
Joey a1457bfa9f Rewrite the memory management code for Nintendo Switch (#8169)
Rewrite the memory management code for Nintendo Switch

The first implementation was naive and did not account for multiple
memory allocations. However, this implementation may still be
incomplete. Currently, when running applications, the code runs fine.
When the application is exited via code (the end of the program is
reached or quit() is called), the Switch will crash. Not sure why this
happens, but I suspect it is from Nim memory allocations.

I suspect the memory allocations because when I compile the helloworld
application without any Nim allocations (just C function calls) and use
`--gc:none` as a compile option, the application exits fine.
2018-07-05 16:33:15 +02:00
..
alloc.nim fix allocator corruption for large sizes (#7338) 2018-03-17 23:59:04 +01:00
ansi_c.nim Nintendo switch support (#8069) 2018-06-27 12:35:09 +02:00
arithm.nim fixes #2909 2015-06-15 00:56:20 +02:00
assign.nim warn about inconsistent spacing around binary operators; fixes #7582 2018-05-05 14:58:33 +02:00
atomics.nim Minor fixes to enable tcc 2018-05-14 11:40:59 +02:00
avltree.nim make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes 2017-01-31 13:08:47 +01:00
cellsets.nim remove ArrayDummySize with unchecked arrays (#5818) 2017-08-28 15:44:35 +02:00
cgprocs.nim proper distinction between --gc:none and --os:standalone 2015-06-29 02:48:33 +02:00
channels.nim fixes seq copying in channels for --gc:regions 2018-06-07 21:35:41 +02:00
chcks.nim further steps in implementing sink parameters; refs #7041 2018-03-30 02:32:13 +02:00
debugger.nim Remove more usages of unary lt (fixes #6634) (#6641) 2017-10-31 19:48:01 +01:00
deepcopy.nim warn about inconsistent spacing around binary operators; fixes #7582 2018-05-05 14:58:33 +02:00
dyncalls.nim Nintendo switch support (#8069) 2018-06-27 12:35:09 +02:00
embedded.nim Yield in try 2018-05-09 22:25:28 +03:00
endb.nim Trim remaining expr/stmt from stdlib (#6742) 2017-11-15 17:34:48 +01:00
excpt.nim Yield in try 2018-05-09 22:25:28 +03:00
gc.nim warn about inconsistent spacing around binary operators; fixes #7582 2018-05-05 14:58:33 +02:00
gc2.nim Mark&Sweep GC: introduce nimTracing define for debugging 2018-01-19 18:11:46 +01:00
gc_common.nim Expose GC_setStackBottom (#7885) 2018-06-04 11:12:18 +02:00
gc_ms.nim M&S GC: collect earlier under memory pressure 2018-01-30 10:30:43 +01:00
gc_regions.nim Expose GC_setStackBottom (#7885) 2018-06-04 11:12:18 +02:00
hti.nim first steps of making 'opt' a first class type for Nim 2017-09-25 13:19:36 +02:00
inclrtl.nim make nim bootstrap again for older versions 2016-07-30 00:50:38 +02:00
jssys.nim JS hotfix for the Internet Explorer up to version 11 2018-05-25 23:19:54 +02:00
memtracker.nim make memory tracker work without onThreadCreation 2017-03-14 15:45:35 +01:00
mmdisp.nim hotfix 3221ac0943 broke gc:regions/aka gc:stack by 2018-06-13 10:36:47 -04:00
nimscript.nim stdlib work 2018-06-16 16:46:32 +03:00
osalloc.nim Rewrite the memory management code for Nintendo Switch (#8169) 2018-07-05 16:33:15 +02:00
platforms.nim Nintendo switch support (#8069) 2018-06-27 12:35:09 +02:00
profiler.nim Enable embedded profiler to display filenames. 2016-08-02 19:19:31 +07:00
repr.nim Remove more usages of unary lt (fixes #6634) (#6641) 2017-10-31 19:48:01 +01:00
reprjs.nim make JS tests green again 2018-04-14 00:54:15 +02:00
sets.nim prepare Nim codebase for upcoming parser changes 2016-07-15 12:56:03 +02:00
sysio.nim Nintendo switch support (#8069) 2018-06-27 12:35:09 +02:00
syslocks.nim Fixup #5804 (#5837) 2017-05-18 13:12:43 +02:00
sysspawn.nim Trim remaining expr/stmt from stdlib (#6742) 2017-11-15 17:34:48 +01:00
sysstr.nim Use new binarySearch everywhere (#7876) 2018-05-25 00:04:30 +03:00
threads.nim Nintendo switch support (#8069) 2018-06-27 12:35:09 +02:00
timers.nim naive work-around for time redefinition (#5193) 2017-01-08 17:53:43 +01:00
widestrs.nim remove ArrayDummySize with unchecked arrays (#5818) 2017-08-28 15:44:35 +02:00