- LLVM Project Blog: What Every C Programmer Should Know About Undefined Behavior #1/3
- LLVM Project Blog: What Every C Programmer Should Know About Undefined Behavior #2/3
- LLVM Project Blog: What Every C Programmer Should Know About Undefined Behavior #3/3
ã³ã³ãã¤ã©åºç¤ LLVM ã®ããã°ã§ãæªå®ç¾©ã®åä½ã¨ãã C è¨èªã®ãã¼ã¯ãµã¤ãã«ã¤ãã¦ã®è¨äºã3åã·ãªã¼ãºã§å ¬éããã¦ããã
C è¨èªã§æªå®ç¾©ã®åä½ãå®è¡ãããããé¼»ããæªéãé£ã³åºãã¦ãæå¥ãè¨ããªããã¨ããã¸ã§ã¼ã¯ã¯æåã§â¦â¦ããããããªã®ãç¥ã£ã¦ãã®ã¯å¹´å¯ãããããï¼åèï¼nasal demonsï¼ã
ãã£ã¨è¦ãã¨ãããåæåãã¦ãªãå¤æ°ã®ä½¿ç¨ã符å·ä»ãå¤æ°ã®ãªã¼ãã¼ããã¼ãNULL ãã¤ã³ã¿ã®åç §ãåå®ç¾©éåã¨ãã£ãåºæ¬çãªè©±ããå§ã¾ãã大ããªã³ã¼ããã¼ã¹ã§ã®å®å°çãªè©±ã«é²ãã§ããã
ã©ããå¨ç¥å¾¹åºãä¸è¶³ãã¦ãããããªã®ã§å度ã®ãé¡ãã¨ãªãã¾ãããCæ»ããã¨ããæè¦ãããããã¯ã¿ã·èªèº«ã¯Cãæãã¦ããã ããâ¦â¦