{"id":10112,"date":"2014-11-22T09:52:51","date_gmt":"2014-11-22T14:52:51","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=10112"},"modified":"2014-11-22T09:53:09","modified_gmt":"2014-11-22T14:53:09","slug":"what-makes-clang-so-special","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/11\/22\/what-makes-clang-so-special\/","title":{"rendered":"What Makes Clang So Special"},"content":{"rendered":"<p><a href=\"http:\/\/www.codergears.com\/Blog\/?p=679\">CoderGears<\/a> (via <a href=\"https:\/\/twitter.com\/Love2Code\/status\/532396765094232064\">Maxime Chevalier<\/a>):<\/p>\n<blockquote cite=\"http:\/\/www.codergears.com\/Blog\/?p=679\"><p>The most important difference of its design is that Clang is based on LLVM, the idea behind LLVM is to use LLVM Intermediate Representation (IR), it&rsquo;s like the bytecode for java.\nLLVM IR is designed to host mid-level analyses and transformations that you find in the optimizer section of a compiler. It was designed with many specific goals in mind, including supporting lightweight runtime optimizations, cross-function\/interprocedural optimizations, whole program analysis, and aggressive restructuring transformations, etc. The most important aspect of it, though, is that it is itself defined as a first class language with well-defined semantics.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>CoderGears (via Maxime Chevalier): The most important difference of its design is that Clang is based on LLVM, the idea behind LLVM is to use LLVM Intermediate Representation (IR), it&rsquo;s like the bytecode for java. LLVM IR is designed to host mid-level analyses and transformations that you find in the optimizer section of a compiler. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[230,255,229,71],"class_list":["post-10112","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-clang","tag-compiler","tag-llvm","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=10112"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10112\/revisions"}],"predecessor-version":[{"id":10113,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10112\/revisions\/10113"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=10112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=10112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=10112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}