3 ms·
I think unfortunately that the way C handles memory is so ingrained in the language and the standard library that to have a safe version of C would be a differe
by dave84 8y ago
I think unfortunately that the way C handles memory is so ingrained in the language and the standard library that to have a safe version of C would be a different enough language to have to call it a different name.
There is Safe-C[0], but it's not directly compilable as C and vice versa, and there are libraries like Cello[1] which provide higher level mechanisms like garbage collection to C.
[0] http://www.safe-c.org/ http://www.safe-c.org/
[1] http://libcello.org/ http://libcello.org/
- reacharavindh 8y agoThanks for the tip. I tried to check safe-c. But, it only had a compiler for Windows. Its documentation has screenshots of setting it up on Windows but no mention of Linux? Is it just Windows only?
- dave84 8y agoYes, unfortunately. It’s more of an academic exercise than a production compiler.