logoalt Hacker News

nneonneotoday at 1:56 AM2 repliesview on HN

I mean, there is a reason why these sorts of constructs are UB, even if they work on popular architectures. The problems aren’t unique to IA64, either; the better solution is to be aware that UB means UB and to avoid it studiously. (Unfortunately, that’s also hard to do in C).


Replies

loegtoday at 2:44 AM

It's a very weird architecture to have these NAT states representable in registers but not main memory. Register spilling is a common requirement!

show 3 replies
awesome_dudetoday at 2:40 AM

The bigger problem is that a user cannot avoid an application where someone was writing code with UB, unless they both have the source code, and expertise in understanding it.