r/Compilers • u/hardcoremaggiesimp • 3d ago
low ram usage efficient minimalist compiler
https://github.com/SidMan-alpha-version/slabread the description for more info feel free to give feedback or contribute to it it has math native operators such as integration and summation also c native so can import any c library i believe
2
Upvotes
4
u/Key_Detail15 3d ago
So, how low are we talking about? Is this the compiler itself, or for the programs it compiles? Which parts are minimalist?
How does it compare with other languages regarding RAM use?
In the case of user-applications, wouldn't the memory usage depend on the data needs of the application and its users?
(I haven't looked at your project in detail, just picking up on those points you've highlighted.)
1
u/Discordbothost 2d ago
The layout is hard to separate from the allocator in a cross-language benchmark. I'd run the same loop with array<T> and table<T> in Slab, keeping the row count and workspace lifetime fixed. Report peak memory for both, and say whether the loop reads one field or the whole record.
1
u/MitchAlsup 1d ago
In 1983 I built an optimizing C compiler that fit in 64KB of PDP-11/70 memory. The target was Denelcor H.E.P processor.