C - How is it possible to ensure that code doesn’t just crash due to a uncaught type error and pointers pointing randomly to memory

I’ve only seen ADA code in books. I have no real frame of reference to be honest. If the choice was mine, I would use some logic or functional (hey, why not one of those languages that combines them) language where possible, C when lower level code was needed, and assembly when I need to get at stuff C can’t. This is exactly what I did when I implemented my Prolog. Assembly for getting at the processor status word (carry and overflow bits), C for the WAM and BIPs (I/O mainly), Prolog for everything else. I would move some things from the Prolog layer to the C layer for performance reasons, but not much.

1 Like

I think this is too far off topic.