title: Does undefined behavior apply to asm code?
body: <p>Let's say you know your software will only run on two's complement machines where signed overflow behavior is nicely defined. Signed overflow is still undefined behavior in C and C++ and the compiler is free to replace your entire program with "ret", start a nuclear war, format your drive, or make demons fly out of your nose.</p>
  
  <p>Suppose you have signed overflow in inline asm, does your program still invoke UB?</p>
  
  <p>If yes, What about separately compiled and linked assembler?</p>