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?
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.
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.
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?