|
|
|
|
|
by vesinisa
1014 days ago
|
|
This is a great question. The answer is that it's literally impossible to write a "safe C compiler" since the language is inherently memory unsafe. There are various static analysis tools that can try to simulate C programs and try to automatically discover memory management bugs, but due to fundamental limitations of computation they can never catch all possible faults. |
|
It doesn't sound impossible to me but I know nothing about compiler development :)