Commit Graph

34 Commits (1b691e7612ce6b8b49beb9eda989648756c6460b)

Author SHA1 Message Date
pancake 1b691e7612
native: implement for-c and for-in range loops (#12155) 2021-11-30 11:49:30 +02:00
Delyan Angelov 6d97b0a407
checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
pancake 89bab98833
native: implement a working hello world compilation for w64 (#12577) 2021-11-26 19:03:15 +02:00
pancake 80a4ff9900
native: handle some more statements and dont echo warnings (#12518) 2021-11-19 13:50:44 +02:00
pancake b367ed9ba3
native: support defining functions in any order (#12511) 2021-11-19 10:25:42 +02:00
pancake ade5774313
native: fix return `a+b` infix construction (#12161) 2021-10-12 19:38:17 +03:00
pancake 347ebe5fd3
native: append .exe, when using the native backend on windows (#12159) 2021-10-12 18:49:42 +03:00
pancake a0a0ae85eb
native: add support for pe64 when -os windows is used (#12149) 2021-10-12 10:43:40 +03:00
pancake 5eba02ea94
native: fix stackframe bug on return statements (#12153) 2021-10-12 06:03:44 +03:00
pancake 7a6491b9b0
native: initial implementation of C.syscall (#12098) 2021-10-09 15:01:30 +03:00
Alexander Medvednikov afeb1525a1 native: rename cgen to code_gen to avoid confusion with cgen 2021-09-10 03:17:53 +03:00
Alexander Medvednikov ab3adf3346 checker: no longer allow automatic dereferncing in `a = b` 2021-09-09 20:21:01 +03:00
pancake ddc62ab0d3
native: native prints (#11426) 2021-09-07 15:44:15 +03:00
Alexander Medvednikov 853d3cb83e os: make chmod() return error 2021-08-28 09:37:24 +03:00
pancake 3c85a03b8a
v.gen.native: initial support for the asm statement in the native backend (#11292) 2021-08-24 15:30:41 +03:00
pancake 57b148032f
v.gen.native: initial support for cast statements (#11291) 2021-08-24 15:26:49 +03:00
pancake 82b16453e4
v.gen.native: improve error messages for unsupported features (#11253) 2021-08-20 14:21:05 +03:00
pancake e7b8cf17e5
v.gen.native: add support for assert statements for amd64 (#11117) 2021-08-10 10:29:44 +03:00
pancake 00d4c7082e
native: add support for print, eprint and eprintln (#11034) 2021-08-03 16:04:31 +03:00
Daniel Däschle 6fa8e4269e
checker: force interface init (#10910) 2021-07-30 03:18:20 +03:00
Delyan Angelov 72c56ccc85
v.builder: use os.write_file/os.write_file_array for writing full files to disk. 2021-07-24 13:32:55 +03:00
Delyan Angelov 6aecda3be8
all: support `[noreturn] fn abc() { for{} }`, mark panic/1 and exit/1with it too. (#10654) 2021-07-04 20:24:19 +03:00
Delyan Angelov 2ff0f62866
v: fix passing `-arch arm64` to `$if arm64{}` 2021-06-13 01:15:35 +03:00
pancake 012f866619
native: support more arithmetic, int/string arrays, function returns and internal_strlen (#10279) 2021-06-06 16:19:10 +03:00
pancake efa07cbcbf
native: initial support for linux-arm64 (hello world only for now) (#10176) 2021-05-23 05:54:28 +03:00
Delyan Angelov bc01de2181
ast: mark ast.File{} with `[heap]`, and use []&ast.File consistently 2021-05-22 19:06:55 +03:00
Uwe Krüger d26ac5692e
all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
pancake 9d4783a2dd
native: initial support for macos-amd64 targets (#9975) 2021-05-03 02:41:36 +03:00
pancake d8bb939072 native: fix tests, address comments and a little cleaner macho 2021-04-27 12:24:58 +03:00
pancake 5be41ebc80 native: handle ident and integer args in exit and add arm64 2021-04-27 12:24:58 +03:00
pancake a31a1eb9cb native: define println and exit builtins or verror() 2021-04-27 12:24:58 +03:00
pancake 9b07278930 native: better raw output and more arm64 cleanup 2021-04-27 12:24:58 +03:00
pancake 9a3869c521 v.ast: rename aarch64 to arm64 and aarch32 to arm32 2021-04-27 12:24:58 +03:00
pancake 6750ed254f x64: rename to `native` to not conflict with the x64 comptime variable 2021-04-27 12:24:58 +03:00