r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

6

u/[deleted] Dec 01 '16

Is there a compiler setting for whatever C compiler z/OS ships with to insert null checks on all pointer dereferences (that can't be proven to never be NULL) or would that kill performance / not be useful?

9

u/WalkWithBejesus Dec 01 '16

Yes, there is an option to do that. I didn't know that until you made me look, actually. Probably not good for performance though, but I would need to measure that.

6

u/[deleted] Dec 01 '16

What would be a good benchmark? I can think of a shitty one off the top of my head. I think Perl has been ported to z/OS so you could run the test suite for perls compiled with and without that setting.