From 957da9056c36a5eea15c6058701f7465b31f64a8 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 30 Mar 2025 22:36:53 +0300 Subject: WIP: rewrite C++ backend to be C + C allows for a bit more control, and we can manually handle closure contexts. For example `examples/fib.fwd` now works for effectively any `n`, pretty cool. + Fairly slow Fibonacci, I must admit. Initial profiling indicates it's mainly due to branch mispredictions, but I'll have to look into this a bit deeper. + The code is a bit hacked together, for now I'm more interested in getting things working, I'll worry about making things pretty later. + For testing, there's also initial support for modules, just so I can print stuff to the terminal + This commit is way too big, lol --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 20d3be2..d07d688 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ deps.mk docs/output build fwd +*.so gen/*.c gen/*.inc !include/fwd -- cgit v1.2.3