summary refs log tree commit diff stats
path: root/compiler/platform.nim
Commit message (Collapse)AuthorAgeFilesLines
* move assertions out of system (#19599)flywind2022-03-231-0/+4
|
* Add support for LoongArch (#19223)wenghongquan2021-12-091-2/+3
| | | | | | | * Add support for LoongArch * Update compiler/installer.ini Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add Zephyr Support (#19003)Jaremy Creechley2021-10-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Porting Nim to run on Zephyr. Includes changes to `std/net`. Squashed commit of the following: tweaking more memory / malloc things revert back bitmasks tweaking nim to use kernel heap as C malloc doesn't work fixing socket polling on zephyr cleanup getting maximum sockets for process or for rtos'es reorganizing and fixing net for async / system merge netlite changes back into nativesockets merge netlite changes back into nativesockets reverting native sockets back tweaking nim / zephyr network adding option to run 'net-lite' from linux bridging zephyr's max connections fixing net errors fixing compilation with getAddrString fixing compilation with getAddrString experimenting with a nativesockets_lite ... getAddrString experimenting with a nativesockets_lite ... getAddrString experimenting with a nativesockets_lite ... getLocalAddr experimenting with a nativesockets_lite ... getLocalAddr experimenting with a nativesockets_lite ... add note regarding incorrect FreeRTOS Sockadd_in fields changing to NIM_STATIC_ASSERT cleaning up the static_assert error messages cleaning up the static_assert error messages setting up static assert ftw! testing compile time asserts reworking Sockaddr objects to more closely match various platforms reworking Sockaddr objects to more closely match various platforms reworking Sockaddr objects to more closely match various platforms finding missing items (issue #18684) fixup posix constants (issue #18684) adding plumbing for zephyr os (issue #18684) adding plumbing for zephyr os (issue #18684) * fixing constant capitalizations * remove extra debug prints and fix TSa_Family/cint issue * remove extra debug prints and fix TSa_Family/cint issue * Porting Nim to run on Zephyr. Includes changes to `std/net`. Squashed commit of the following: tweaking more memory / malloc things revert back bitmasks tweaking nim to use kernel heap as C malloc doesn't work fixing socket polling on zephyr cleanup getting maximum sockets for process or for rtos'es reorganizing and fixing net for async / system merge netlite changes back into nativesockets merge netlite changes back into nativesockets reverting native sockets back tweaking nim / zephyr network adding option to run 'net-lite' from linux bridging zephyr's max connections fixing net errors fixing compilation with getAddrString fixing compilation with getAddrString experimenting with a nativesockets_lite ... getAddrString experimenting with a nativesockets_lite ... getAddrString experimenting with a nativesockets_lite ... getLocalAddr experimenting with a nativesockets_lite ... getLocalAddr experimenting with a nativesockets_lite ... add note regarding incorrect FreeRTOS Sockadd_in fields changing to NIM_STATIC_ASSERT cleaning up the static_assert error messages cleaning up the static_assert error messages setting up static assert ftw! testing compile time asserts reworking Sockaddr objects to more closely match various platforms reworking Sockaddr objects to more closely match various platforms reworking Sockaddr objects to more closely match various platforms finding missing items (issue #18684) fixup posix constants (issue #18684) adding plumbing for zephyr os (issue #18684) adding plumbing for zephyr os (issue #18684) * fixing constant capitalizations * remove extra debug prints and fix TSa_Family/cint issue * remove extra debug prints and fix TSa_Family/cint issue * fixing PR issues * Porting Nim to run on Zephyr. Includes changes to `std/net`. Squashed commit of the following: tweaking more memory / malloc things revert back bitmasks tweaking nim to use kernel heap as C malloc doesn't work fixing socket polling on zephyr cleanup getting maximum sockets for process or for rtos'es reorganizing and fixing net for async / system merge netlite changes back into nativesockets merge netlite changes back into nativesockets reverting native sockets back tweaking nim / zephyr network adding option to run 'net-lite' from linux bridging zephyr's max connections fixing net errors fixing compilation with getAddrString fixing compilation with getAddrString experimenting with a nativesockets_lite ... getAddrString experimenting with a nativesockets_lite ... getAddrString experimenting with a nativesockets_lite ... getLocalAddr experimenting with a nativesockets_lite ... getLocalAddr experimenting with a nativesockets_lite ... add note regarding incorrect FreeRTOS Sockadd_in fields changing to NIM_STATIC_ASSERT cleaning up the static_assert error messages cleaning up the static_assert error messages setting up static assert ftw! testing compile time asserts reworking Sockaddr objects to more closely match various platforms reworking Sockaddr objects to more closely match various platforms reworking Sockaddr objects to more closely match various platforms finding missing items (issue #18684) fixup posix constants (issue #18684) adding plumbing for zephyr os (issue #18684) adding plumbing for zephyr os (issue #18684) * fixing constant capitalizations * remove extra debug prints and fix TSa_Family/cint issue * remove extra debug prints and fix TSa_Family/cint issue * Remerge * fixing constant capitalizations * remove extra debug prints and fix TSa_Family/cint issue * remove extra debug prints and fix TSa_Family/cint issue * fixing PR issues * fix maxDescriptors on zephyr/freertos * move maxDescriptors to selector.nim -- fixes compile issue * change realloc impl on zephyr to match ansi c behavior * change realloc impl on zephyr to match ansi c behavior * force compileOnly mode for tlwip Co-authored-by: Jaremy J. Creechley <jaremy.creechley@wavebaselabs.com> Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com>
* Add Elbrus 2000 architecture (#19024)Danil Yarantsev2021-10-211-2/+4
| | | | | | | | | * Add Elbrus 2000 architecture * Add e2k to niminst * Update compiler/installer.ini Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* ported Nim to proprietary CrossOS [backport] (#18889)Andreas Rumpf2021-09-241-1/+5
|
* closes #18433 (#18484)Andreas Rumpf2021-07-131-4/+2
| | | | | * beneficial refactoring; use system.Endianness * closes #18433
* let's assume littleEndian in JS backend (#16886)flywind2021-02-011-1/+1
| | | | | * let's assume littleEndian in JS and VM backend * Update compiler/platform.nim
* some comments for amd64 and nimvm CPU (#16756)Timothee Cour2021-01-201-1/+2
|
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-031-1/+2
|
* Fixing issue #15302 -- lwip doesn't support signals (#15303)Jaremy Creechley2020-09-141-1/+1
| | | | | | | | * Fixing issue #15302 -- lwip doesn't support signals * Adding test to catch issue #15302 -- lwip/freertos net library don't try to build / run on windows, it'll compile only but not run Fixing issue #15302 -- reworking test to compile on other platforms
* Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250)Jaremy Creechley2020-08-311-2/+7
| | | | | | | | | | | | | | | | | | | * Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) Adding FreeRTOS/LwIP to compiler: * adding freertos option * dyncalls for freertos * add freertos to posix os list * adding lwip option Setting up networking FreeRTOS/LwIP Port: * setting up lwip network for freertos * fixing posix / networking for freertos * disable setInheritable for freerots * using lwip for net control items * Fix builds by ignoring lib/posix/posix_freertos_consts.nim similar to lib/posix/posix_other_consts.nim
* Added 'ansic' os support for minimal (embedded) targets (#13088)Ico Doornekamp2020-01-151-1/+5
| | | | | | | | * os:any implementation * os:asny: omit flock/funlock calls in echoBinSafe * Disabled default "unhandled expection" reporting for `--os:any` to reduce code size. Added unhandledExceptionHook instead which can be used to get a notification from Nim and handle it from the application.
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-4/+4
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* Add build support for Linux/hppa (#12271)John Paul Adrian Glaubitz2019-09-261-3/+4
| | | | | | * build.sh: Enable CPU detection for hppa * compiler: Add hppa as target architecture on Linux * lib/system: Add platform support for hppa
* Add --os:ios switch and docs. (#12204)treeform2019-09-181-1/+5
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-1/+1
| | | | --styleCheck:error
* list available options for --cpu, --os and --cc if the passed option is not ↵Ico Doornekamp2019-05-251-0/+8
| | | | found (#11328)
* Replace countup(x, y) with x .. yClyybber2019-05-071-2/+2
|
* add wasm32 platformJacek Sieka2019-03-031-2/+3
|
* fixes #8081Araq2018-09-221-4/+3
|
* Nintendo switch support (#8069)Joey2018-06-271-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add config section for Nintendo Switch * Add compiler configuration for Nintendo Switch and it's CPU * Add specific lib code for Nintendo Switch * Add GC support for Nintendo Switch * Update changelog for Nintendo Switch * Update changelog with more info about fixed paths * Cleaned up GC memory management a bit * Relocate docs for Switch * Rename aarch64NoneElfGcc to nintendoSwitchGCC * Remove armv8a57 * Fix installer.ini * Reuse code in linux and amd64 * Add posix defs for nintendo switch * Add more defined sections for nintendo switch * Remove old comment * Add what's not supported for Nintendo Switch docs * Make nintendoswitch == posix * Remove DEVKITPRO references from nim.cfg * Make PR extccomp changes * Remove Result type alias * Add separate switch consts file * Update docs for nintendo switch * Fix travis errors with undefined consts and add correct wait.h procs
* rename 'nimrodVM' to 'nimVM'Andreas Rumpf2018-05-281-4/+4
|
* platform.nim doesn't use globals anymore; prepare msgs.nim for not using globalsAndreas Rumpf2018-05-181-28/+24
|
* Add RISC-V (riscv64) support (#7417)Federico Ceratto2018-04-071-2/+3
|
* Introduce first class support for Android (#5772)Fredrik Høisæther Rasch2017-08-061-2/+6
|
* Add mips64 and mips64el CPU platforms (#5866)James Cowgill2017-08-031-2/+5
|
* support for the Genode OS framework (#5560)Emery Hemingway2017-03-311-1/+6
|
* Make DragonFlyBSD a first class BSD-like OS (#5548)Eugene Kabanov2017-03-161-2/+9
|
* define sparc64 platformSergey Avseyev2016-07-211-2/+3
|
* nimrod -> nimErik Johansson Andersson2016-02-051-1/+1
|
* add msp430 cpu supportKeerthan Jaic2015-08-261-2/+3
|
* Add arm64 support (untested)def2015-07-311-1/+2
|
* Add powerpc64el support (untested)def2015-07-311-2/+3
|
* Add Mipsel CPU support (untested)def2015-07-311-1/+2
|
* codegen doesn't produce line tracing commands anymore; fixes #1344Araq2015-03-211-142/+142
|
* merged #2083 manuallyAraq2015-02-081-1/+1
|
* the compiler knows vxWorks is an OSAraq2015-01-281-3/+7
|
* minor improvement to the barrier implementationAraq2014-12-091-1/+1
|
* case consistency part 4Araq2013-12-271-4/+4
|
* case consistency part 1Araq2013-12-271-6/+6
|
* --os:standalone works againAraq2013-06-301-1/+1
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* EcmaScript => JS. Fixes #330Simon Hafner2013-02-151-4/+4
| | | | No one calls it EcmaScript anymore.
* added some support for HaikuAraq2012-07-291-1/+5
|
* implemented support for the AVR CPU and standalone OSAraq2012-03-311-4/+10
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* new compiler option tlsEmulationAraq2011-10-271-5/+5
|
* first steps to thread local heapsAraq2011-06-021-2/+3
|
* big repo cleanupAraq2011-04-121-0/+213
b8cf865c1b0'>^
6a9baf3fd ^
efb53233c ^
050789a8f ^
6db20a4be ^
050789a8f ^
afddae5aa ^
badb6c0f6 ^

050789a8f ^
efb53233c ^
badb6c0f6 ^
efb53233c ^

4fbba0a65 ^

674a1110f ^
3163a0f46 ^
30b098fca ^

a4e2b0c15 ^
674a1110f ^
ce859d8c1 ^
674a1110f ^
4fbba0a65 ^
9a7f0cd85 ^


08c0ba379 ^
b5b5e6e76 ^
08c0ba379 ^
ce859d8c1 ^
b5b5e6e76 ^
08c0ba379 ^
b5b5e6e76 ^


ce859d8c1 ^
9a7f0cd85 ^
08c0ba379 ^
40ec7be45 ^
de6198c74 ^
9a7f0cd85 ^

b5b5e6e76 ^
2b8bf8fc4 ^
bdcb72959 ^


9a7f0cd85 ^

01ae0d28d ^
9a7f0cd85 ^
78c0ac540 ^




























































8c6290342 ^
5d63ecb3a ^
8d714d2b0 ^











050789a8f ^
8d714d2b0 ^
050789a8f ^
8d714d2b0 ^







4c7313931 ^
8d714d2b0 ^

050789a8f ^
8d714d2b0 ^

8c1083d3b ^


4c7313931 ^
8c1083d3b ^


8d714d2b0 ^
050789a8f ^

8d714d2b0 ^

0a84b8fb4 ^































28c9c062a ^

0a84b8fb4 ^
08c0ba379 ^
2962ca789 ^
745f1642d ^
745f1642d ^




2962ca789 ^
08c0ba379 ^
050789a8f ^
8ceba8a7f ^


08c0ba379 ^
c844a9169 ^
745f1642d ^
11dad688f ^
745f1642d ^
11dad688f ^
745f1642d ^
11dad688f ^
745f1642d ^



b407f083b ^



ac56d3b0e ^
2962ca789 ^
efb53233c ^
af792da0b ^
050789a8f ^

78f4aacde ^
4fbba0a65 ^
8d714d2b0 ^
0257f389f ^
8c6290342 ^
78c0ac540 ^




105a0616a ^


ed0d9e271 ^

5d63ecb3a ^
ce859d8c1 ^
4be0d1652 ^
a325692fb ^
4be0d1652 ^
ce859d8c1 ^
4be0d1652 ^


3ea099bc7 ^




bf592c4e9 ^




0a84b8fb4 ^

2962ca789 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433