- Performance of unaligned memory-accesses - 2 Updates
- Available C++ Libraries FAQ - 1 Update
Keith Thompson <kst-u@mib.org>: Aug 14 03:04PM -0700 > Program that happens to do something in narrow conditions but not in > others is unreliable and unreliability is the most disliked property > of software. It's important to remember what "undefined behavior" means. It's not "this program will blow up". It is simply behavior for which this document imposes no requirements where "this document" is the C++ standard. If something other than the standard imposes requirements, it's still undefined behavior. If you want to talk about unexpected or undesirable behavior, call it that. That's not what "undefined behavior" means. -- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */ |
"Öö Tiib" <ootiib@hot.ee>: Aug 14 03:47PM -0700 On Thursday, 15 August 2019 01:05:03 UTC+3, Keith Thompson wrote: > the standard imposes requirements, it's still undefined behavior. > If you want to talk about unexpected or undesirable behavior, > call it that. That's not what "undefined behavior" means. You are correct but it was not about behavior documented somewhere else. It was about unaligned access. For example in lot of context on MS Windows it works but not in all. I have experienced that if to call some API functions with wrongly aligned pointers then it may work incorrectly, oddly or even to crash exactly because of those pointers being wrongly aligned. And I'd like to see from where to get the people who can tell what functions of what APIs are such and where it is defined and documented. |
Nikki Locke <nikki@trumphurst.com>: Aug 14 10:23PM Available C++ Libraries FAQ URL: http://www.trumphurst.com/cpplibs/ This is a searchable list of libraries and utilities (both free and commercial) available to C++ programmers. If you know of a library which is not in the list, why not fill in the form at http://www.trumphurst.com/cpplibs/cppsub.php Maintainer: Nikki Locke - if you wish to contact me, please use the form on the website. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment