Commit graph

633 commits

Author SHA1 Message Date
Victor Olin
3473c953b5 Wrote a test for shared library linking 2023-02-24 13:39:55 +01:00
Victor Olin
518940ab15 clean up 2023-02-24 13:39:55 +01:00
Victor Olin
99c69dbd57 Implemented free chunk swaps and filtering 2023-02-24 13:39:55 +01:00
Victor Olin
b79a83c32a Debugged mark()
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-24 13:39:55 +01:00
valtermiari
fb5f283dfd Some progress on marking 2023-02-24 13:39:55 +01:00
valtermiari
5fcab54fe4 Fixed sweep 2023-02-24 13:39:55 +01:00
valtermiari
a375388591 More debugging 2023-02-24 13:39:55 +01:00
Victor Olin
42c22bc1eb Continued debugging
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-24 13:39:55 +01:00
Victor Olin
5ac9b665a1 Testing different stack pointers 2023-02-24 13:39:55 +01:00
Victor Olin
b168438c14 Started testing the GC
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-24 13:39:55 +01:00
valtermiari
30a3da3156 Some configurations 2023-02-24 13:39:55 +01:00
valtermiari
1690804821 Some small test features 2023-02-24 13:39:55 +01:00
Victor Olin
0260b2876c Next up is tests
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-24 13:39:48 +01:00
Victor Olin
b53f892393 Almost finished w/ 1st impl of GC 2023-02-24 13:37:47 +01:00
Victor Olin
920ae04595 Almost finished with 1st impl of GC
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-24 13:37:47 +01:00
Victor Olin
7d91cf871a Goal for next week 2023-02-24 13:37:47 +01:00
Victor Olin
e52c38f5f7 Worked a bit on the heap 2023-02-24 13:37:47 +01:00
Victor Olin
17d41a408d Started with a rough structure 2023-02-24 13:37:47 +01:00
valtermiari
3852583f08 A simple mark-sweep implementation 2023-02-24 13:37:47 +01:00
Victor Olin
f1f8ed176b init branch 2023-02-24 13:37:47 +01:00
Samuel Hammersberg
272fbe3504 Removed some unused code. 2023-02-24 09:29:55 +01:00
Samuel Hammersberg
5d004f4286 Added calling conventions to functions. 2023-02-24 09:00:29 +01:00
valtermiari
8ed9ed9107 Testing recursive marking with chain references. 2023-02-23 15:51:29 +01:00
Victor Olin
7b068d6e88 Documented the library 2023-02-23 13:00:15 +01:00
sebastianselander
06e65de235 started on a test suite 2023-02-23 11:54:35 +01:00
Victor Olin
bdca6ffc85 Fixed bugs on freeing chunks and stack-scanning
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-22 18:30:15 +01:00
sebastianselander
5daa5573f2 Added more comments to the code 2023-02-22 15:24:38 +01:00
valtermiari
1ccf3dac6b Fixed bug in free and some small testing additions 2023-02-22 12:12:43 +01:00
valtermiari
6fff6ef2d1 Some tweaks in mark. Testing of chain references 2023-02-21 17:38:45 +01:00
sebastianselander
8065576c31 Let has a bug, otherwise probably(?) done 2023-02-20 20:38:36 +01:00
Victor Olin
12a460ae4c Fixed heap DLL linking 2023-02-20 18:15:58 +01:00
sebastianselander
a98135827c EAdd is bugged. Mostly complete though. 2023-02-20 16:51:44 +01:00
Samuel Hammersberg
4df3f705ed LLVMIr code now has the fastcc flag to enable speeed 😎 2023-02-20 16:44:27 +01:00
Samuel Hammersberg
afbc700db2 Fixed the type checker accidentally chucking cases in some cases. 2023-02-20 16:43:54 +01:00
Samuel Hammersberg
cd0f9dd456 The output directory is now cleared when the program is ran. 2023-02-20 15:27:13 +01:00
Samuel Hammersberg
a36de2bde1 Added support for the minus operator. 2023-02-20 14:52:11 +01:00
Samuel Hammersberg
fe4533c7ae Added an option to output some debug info. 2023-02-20 14:39:56 +01:00
Samuel Hammersberg
6749650223 Added support for pattern matching on ints. Might need a lookover. 2023-02-20 14:39:43 +01:00
Samuel Hammersberg
18e0a92fe0 Added grammar for case matching. 2023-02-20 14:39:00 +01:00
valtermiari
ce3a6d36f0 Tweaked sweeping, test with detached pointers 2023-02-20 14:34:57 +01:00
sebastianselander
dfbdb6678e Working on non-ugly version of algorithm W (Hindley-Milner) 2023-02-20 12:09:31 +01:00
Victor Olin
a9998a7816 Fixed mark skipping
Co-authored-by: ValterMiari <ValterMiari@users.noreply.github.com>
2023-02-20 11:45:07 +01:00
Victor Olin
ff8c270cb8 Wrote a test for shared library linking 2023-02-19 21:02:08 +01:00
sebastianselander
420fb107f0 Commented code and fixed some bugs I think. Still not complete
id : Int -> Int
id x = x
does not type check
2023-02-19 15:25:49 +01:00
sebastianselander
db932048ba Tried fixing bug. Failed. 2023-02-19 02:10:57 +01:00
sebastianselander
8b5cd3cf9a Remade the algorithm myself. Still some bugs. 2023-02-18 23:08:27 +01:00
Victor Olin
c20ef8f5dd clean up 2023-02-18 15:05:02 +01:00
Samuel Hammersberg
087850d1cf
Merge pull request #8 from bachelor-group-66-systemf/prep-tc-merge
Add simple type checker and convert pipleline to use typed AST
2023-02-18 14:03:40 +00:00
Samuel Hammersberg
a4c12ede79 Merge branch 'prep-tc-martin' of github.com:bachelor-group-66-systemf/language into prep-tc-martin 2023-02-18 15:03:11 +01:00
Martin Fredin
f485ca9762 Remove case expressions 2023-02-18 14:49:33 +01:00