{"published":"2005-12-27 00:00:00","blog_url":"https://yupo5656.hatenadiary.org/","provider_name":"Hatena Blog","image_url":null,"version":"1.0","provider_url":"https://hatena.blog","blog_title":"memologue","title":" GCC\u306e-ftrapv","description":"gcc -ftrapv \u6700\u8fd1\u306eGCC(>=3.x)\u306b\u306f-ftrapv\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u3063\u3066\u3001\u3053\u308c\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u300c\u7b26\u53f7\u3042\u308a\u6574\u6570\u540c\u58eb\u306e\u52a0\u7b97\u30fb\u6e1b\u7b97\u30fb\u4e57\u7b97\u3067\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc/\u30a2\u30f3\u30c0\u30fc\u30d5\u30ed\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u3001\u30d7\u30ed\u30bb\u30b9\u3092abort()\u300d\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001INT_MAX + 1 \u3068\u304b INT_MIN - 1 \u3068\u304b INT_MIN * (-1) \u306a\u3093\u3066\u8a08\u7b97\u3092\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u5373abort()\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u308f\u3051\u3067\u3059*1\u3002\u7b26\u53f7\u7121\u3057\u6574\u6570\u306e\u5834\u5408\u306f\u30c1\u30a7\u30c3\u30af\u3055\u308c\u307e\u305b\u3093\u306e\u3067\u3054\u6ce8\u610f\u3002 \u3055\u3066\u3001 int test_trap(int a, int b) { int d = a + b; int e = a - b; int \u2026","type":"rich","author_url":"https://blog.hatena.ne.jp/yupo5656/","width":"100%","author_name":"yupo5656","categories":["C++","GCC"],"height":"190","url":"https://yupo5656.hatenadiary.org/entry/20051227/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20051227%2Fp1\" title=\" GCC\u306e-ftrapv - memologue\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}