←back to thread

305 points todsacerdoti | 1 comments | | HN request time: 0.21s | source
Show context
anon-3988 ◴[] No.44062323[source]
Is skipping initialization of buffers a hard problem for compilers?
replies(4): >>44062623 #>>44062735 #>>44063622 #>>44068910 #
1. adgjlsfhk1 ◴[] No.44062735[source]
yeah. Proving that the zero initialization is useless requires proving that the rest of the program never reads one of the zeroed values. This is really difficult because compilers generally don't track individual array indices (since you often don't even know how big the array is)