News for hackers. Stuff that matters.
Re:Some dark corners of C by revelation on Saturday March 09, 2013 @10:15AM (#5348569)
What possible optimization would a compiler be able to do, given that arrays are only ever implicit in compiled C?
Re:Some dark corners of C by jedbrown on Saturday March 09, 2013 @12:37PM (#5349005)
If it knows the address is valid, it can use a speculative load. If it knows there are enough entries, it can use a wide load. Without that knowledge, such instructions could trigger SEGV due to an invalid pointer or the wide load spilling over a page boundary.