Commit Graph

90 Commits

Author SHA1 Message Date
IgorCielniak
2b48e2d7e6 added loop unroling 2026-02-10 15:18:30 +01:00
IgorCielniak
2f5b1f40b1 added a function to convert the buildt in array to a dynamic array 2026-02-10 11:31:39 +01:00
IgorCielniak
08892c97bb added basic constant folding 2026-02-07 21:06:01 +01:00
IgorCielniak
a8908819c4 added the option to compile in to .so and .a 2026-02-07 20:49:24 +01:00
IgorCielniak
bf4d11d313 added fdump and frdump for dumping the stack in the new format 2026-02-06 10:46:48 +01:00
IgorCielniak
5fb36ac9bc standardized the system of stack effect comments and updated/corrected the existing comments in stdlib and added some that were lacking 2026-02-05 21:36:03 +01:00
IgorCielniak
2d06358e24 made tests run on arm with qemu-x86_64 2026-02-04 09:55:07 +01:00
IgorCielniak
1652692176 slight fixes to cte 2026-02-04 08:52:14 +01:00
IgorCielniak
ac4c55cb8e some additions to core and test for them 2026-02-03 18:43:04 +01:00
IgorCielniak
c2fcaf8f8d ported dynamic arrays and strlen to l2 2026-02-03 09:41:11 +01:00
IgorCielniak
2b78ca671c rule110 2026-02-03 09:03:44 +01:00
IgorCielniak
5ea020100e implemented realloc as well as a bunch of fixes and some small changes like changing the order of arguments for !, making alloc drop etc. 2026-02-02 15:51:58 +01:00
IgorCielniak
ec826c31b2 changed the label generation logick to avoid the word_ prefix 2026-02-02 12:22:22 +01:00
IgorCielniak
dfc88c20eb small update 2026-01-31 22:18:41 +01:00
IgorCielniak
ff6af0b783 update to structs 2026-01-21 14:26:30 +01:00
IgorCielniak
805f8e26a5 added more debug info when compiling in debug mode, now the debug info contains mapping to the original .sl file 2026-01-18 19:55:59 +01:00
IgorCielniak
725fec9d73 added a simple effect system to avoid the hack with mentioning 'print_buf' in in comments inside of for ex. print 2026-01-16 11:59:41 +01:00
IgorCielniak
6ea160b388 update to the C FFI 2026-01-13 18:41:05 +01:00
IgorCielniak
fa6e42292d proper cleanup of the return stack in the toint function 2026-01-13 09:26:05 +01:00
IgorCielniak
a195e2b7cf added elif 2026-01-12 19:51:52 +01:00
IgorCielniak
ce7944916a update to the SPEC.md 2026-01-12 19:32:13 +01:00
IgorCielniak
47a45c050e quite a few fixes, overall repo cleanup and some restructurization in the stdlib 2026-01-12 19:03:49 +01:00
IgorCielniak
3f87f12cf1 small fixes to typeconversion.sl 2026-01-12 18:36:34 +01:00
IgorCielniak
707095c84b added tostr 2026-01-12 14:54:48 +01:00
IgorCielniak
4fe4d26511 added abs to stdlib.sl and made a toint function, I'm gonna kms 2026-01-12 10:32:25 +01:00
IgorCielniak
155b0eae07 added rdump to debug.sl for dumping the return stack 2026-01-12 08:47:42 +01:00
IgorCielniak
fc67639aa5 fixed a small bug in tests/alloc.sl 2026-01-12 08:42:54 +01:00
IgorCielniak
77594f45f4 rewritten 'sh' inside nob.sl from asm to l2 code, renamed strcpy to memcpy and put it in mem.sl 2026-01-11 19:26:39 +01:00
IgorCielniak
8139aa66d9 make 'inline' come before 'word' instead of after the function definition 2026-01-10 22:19:55 +01:00
IgorCielniak
88ee10face added an alternate way to use the 'write' syscall that doesn't require any libraries at all 2026-01-09 15:51:04 +01:00
IgorCielniak
e967e0d044 initial version of nob.sl 2026-01-09 15:45:36 +01:00
IgorCielniak
c31d8b93ce added a repl 2026-01-09 15:14:49 +01:00
IgorCielniak
315ad9ef77 another small update to error reporting 2026-01-09 12:33:55 +01:00
IgorCielniak
95f6c1dac5 small improvement for error reporting 2026-01-09 12:29:08 +01:00
IgorCielniak
c3490a37ae added compile time intrinsics that allow for modification of the prelude and bss section 2026-01-09 12:22:00 +01:00
IgorCielniak
0acf5555a8 added goto 2026-01-09 11:10:18 +01:00
IgorCielniak
8466664637 added inline functions 2026-01-09 11:01:24 +01:00
IgorCielniak
f2af252bc4 added dead code elimination 2026-01-09 10:42:13 +01:00
IgorCielniak
d62f2fe02d introduced direct ability to call syscalls and linux.sl 2026-01-08 20:56:36 +01:00
IgorCielniak
2f60555d22 moved hello.sl to tests 2026-01-08 19:12:55 +01:00
IgorCielniak
f7b08afdcb implemented 'here' 2026-01-08 19:04:29 +01:00
IgorCielniak
39ed504d88 added ewrite_buf and eputs 2026-01-08 18:44:48 +01:00
IgorCielniak
e37f5ae5e4 added include paths 2026-01-08 18:40:32 +01:00
IgorCielniak
e7abc47cdf ststic arrays and dynamic arrays 2026-01-08 18:34:34 +01:00
IgorCielniak
1727bab944 added variables 2026-01-08 16:05:43 +01:00
IgorCielniak
b9098d9893 changed the way that functions are defined 2026-01-08 15:28:10 +01:00
IgorCielniak
d4dc6ceef5 small refactor and cleanup 2026-01-08 13:15:27 +01:00
IgorCielniak
963e024108 fix for args.sl 2026-01-03 09:10:37 +00:00
IgorCielniak
c3fc9cf831 unified the block endings 2026-01-03 09:04:50 +00:00
IgorCielniak
c696898436 alternative version of fibonacii numbers 2025-12-31 15:01:33 +00:00