Warning : overflow in implicit constant conversion
-Wall doesn’t include many options. -Wconversion is one of them and warns about the behavior you’re interested in. See http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
-Wall doesn’t include many options. -Wconversion is one of them and warns about the behavior you’re interested in. See http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
According to the MIPS instruction reference, the only addition operations which can produce overflow exceptions are the signed addition instructions: MIPS integers are 32-bit, and since you’ll be using signed integers, the maximum value is 231-1 (aka 2147483647 or hex 7FFFFFFF). Thus any addition which results in a number larger than this should throw an exception, … Read more