{"id":1904,"date":"2021-05-31T18:46:12","date_gmt":"2021-05-31T13:16:12","guid":{"rendered":"https:\/\/www.goseeko.com\/blog\/?p=1904"},"modified":"2021-10-30T07:40:42","modified_gmt":"2021-10-30T07:40:42","slug":"what-is-a-compiler","status":"publish","type":"post","link":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/","title":{"rendered":"What is a Compiler?"},"content":{"rendered":"\n<p>A code is converted source code written in a high-level programming language to machine code(such as Java) into machine code for a specific computer architecture (such as the Intel Pentium architecture). The generated machine code can then be run several times with different data each time.<\/p>\n\n\n\n<p>A compiler is a software program that converts pre-programmed code into a more simple machine language that is similar to the hardware&#8217;s &#8220;bare metal&#8221; and more readable by the computer.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Features of compilers<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Maintaining the right interpretation of the code<\/li><li>The speed of the target code<\/li><li>Understand prototypes for legal and illegal systems<\/li><li>Good documentation \/ management of errors<\/li><li>Correctness<\/li><li>Speed of compilation<\/li><li>Code debugging help<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Task of compilers<\/strong><\/h2>\n\n\n\n<p>Tasks which are performed by compilers :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Divides the source programme into parts and imposes on them a grammatical structure.<\/li><li>Makes it possible to create the desired from the intermediate representation.<\/li><li>target programme and also create the symbol table.<\/li><li>Compiles and detects source code errors.<\/li><li>Storage of all variables and codes is handled.<\/li><li>Different compilations are supported.<\/li><li>Learn, interpret, and translate the entire programme to a semantically equivalent.<\/li><li>Depending on the computer sort, conversion of the source code into object code.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Phase of compilers<\/strong><\/h2>\n\n\n\n<p>The method of compilation includes the sequence of different stages. Each phase takes a source programme in one representation and produces output in another representation. From its previous stage, each process takes input.&nbsp;<\/p>\n\n\n\n<p>The various stages of the compiler take place :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Lexical Analysis<\/li><li>Syntax Analysis<\/li><li>Semantic Analysis<\/li><li>Intermediate Code Generation<\/li><li>Code Optimisation<\/li><li>Code Generation&nbsp;<\/li><\/ul>\n\n\n\n<p>Interested in learning about similar topics? Here are a few hand-picked blogs for you!<br><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/www.goseeko.com\/blog\/what-is-machine-learning\" target=\"_blank\" rel=\"noreferrer noopener\">What is machine learning?<\/a><\/li><li><a href=\"http:\/\/Published - https:\/\/www.goseeko.com\/blog\/what-is-computer-software\" target=\"_blank\" rel=\"noreferrer noopener\">What is Computer Software?<\/a><\/li><li><a href=\"http:\/\/Published - https:\/\/www.goseeko.com\/blog\/what-is-a-computer-processor\" target=\"_blank\" rel=\"noreferrer noopener\">What is Computer Processor?<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A code is converted source code written in a high-level programming language to machine code into machine code for a specific architecture.<\/p>\n","protected":false},"author":3,"featured_media":1530,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[36],"tags":[],"class_list":["post-1904","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-science-software-engineering-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is a Compiler? - Goseeko blog<\/title>\n<meta name=\"description\" content=\"A compiler is a software program that converts pre-programmed code into a more simple machine language more readable by the computer\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is a Compiler? - Goseeko blog\" \/>\n<meta property=\"og:description\" content=\"A compiler is a software program that converts pre-programmed code into a more simple machine language more readable by the computer\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\" \/>\n<meta property=\"og:site_name\" content=\"Goseeko blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/goseeko\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-31T13:16:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-30T07:40:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"425\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Team Goseeko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@goseeko\" \/>\n<meta name=\"twitter:site\" content=\"@goseeko\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Goseeko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\"},\"author\":{\"name\":\"Team Goseeko\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/#\/schema\/person\/7ec300cd01b6116501943af14d546bae\"},\"headline\":\"What is a Compiler?\",\"datePublished\":\"2021-05-31T13:16:12+00:00\",\"dateModified\":\"2021-10-30T07:40:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\"},\"wordCount\":285,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1\",\"articleSection\":[\"Computers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\",\"url\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\",\"name\":\"What is a Compiler? - Goseeko blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1\",\"datePublished\":\"2021-05-31T13:16:12+00:00\",\"dateModified\":\"2021-10-30T07:40:42+00:00\",\"description\":\"A compiler is a software program that converts pre-programmed code into a more simple machine language more readable by the computer\",\"breadcrumb\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1\",\"width\":640,\"height\":425,\"caption\":\"electronic devices and circuit\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.goseeko.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is a Compiler?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/#website\",\"url\":\"https:\/\/www.goseeko.com\/blog\/\",\"name\":\"Goseeko blog\",\"description\":\"Learning beyond college, Students platform for life skills.\",\"publisher\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.goseeko.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/#organization\",\"name\":\"Goseeko.com\",\"url\":\"https:\/\/www.goseeko.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/09\/GoSeeko_Stacked-logo-01.png?fit=2471%2C2471&ssl=1\",\"contentUrl\":\"https:\/\/i1.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/09\/GoSeeko_Stacked-logo-01.png?fit=2471%2C2471&ssl=1\",\"width\":2471,\"height\":2471,\"caption\":\"Goseeko.com\"},\"image\":{\"@id\":\"https:\/\/www.goseeko.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/goseeko\",\"https:\/\/x.com\/goseeko\",\"https:\/\/www.instagram.com\/goseeko\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/#\/schema\/person\/7ec300cd01b6116501943af14d546bae\",\"name\":\"Team Goseeko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.goseeko.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Goseeko\"},\"url\":\"https:\/\/www.goseeko.com\/blog\/author\/team-goseeko\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is a Compiler? - Goseeko blog","description":"A compiler is a software program that converts pre-programmed code into a more simple machine language more readable by the computer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/","og_locale":"en_US","og_type":"article","og_title":"What is a Compiler? - Goseeko blog","og_description":"A compiler is a software program that converts pre-programmed code into a more simple machine language more readable by the computer","og_url":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/","og_site_name":"Goseeko blog","article_publisher":"https:\/\/www.facebook.com\/goseeko","article_published_time":"2021-05-31T13:16:12+00:00","article_modified_time":"2021-10-30T07:40:42+00:00","og_image":[{"width":640,"height":425,"url":"https:\/\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg","type":"image\/jpeg"}],"author":"Team Goseeko","twitter_card":"summary_large_image","twitter_creator":"@goseeko","twitter_site":"@goseeko","twitter_misc":{"Written by":"Team Goseeko","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#article","isPartOf":{"@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/"},"author":{"name":"Team Goseeko","@id":"https:\/\/www.goseeko.com\/blog\/#\/schema\/person\/7ec300cd01b6116501943af14d546bae"},"headline":"What is a Compiler?","datePublished":"2021-05-31T13:16:12+00:00","dateModified":"2021-10-30T07:40:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/"},"wordCount":285,"commentCount":0,"publisher":{"@id":"https:\/\/www.goseeko.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1","articleSection":["Computers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/","url":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/","name":"What is a Compiler? - Goseeko blog","isPartOf":{"@id":"https:\/\/www.goseeko.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage"},"image":{"@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1","datePublished":"2021-05-31T13:16:12+00:00","dateModified":"2021-10-30T07:40:42+00:00","description":"A compiler is a software program that converts pre-programmed code into a more simple machine language more readable by the computer","breadcrumb":{"@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#primaryimage","url":"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1","width":640,"height":425,"caption":"electronic devices and circuit"},{"@type":"BreadcrumbList","@id":"https:\/\/www.goseeko.com\/blog\/what-is-a-compiler\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.goseeko.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What is a Compiler?"}]},{"@type":"WebSite","@id":"https:\/\/www.goseeko.com\/blog\/#website","url":"https:\/\/www.goseeko.com\/blog\/","name":"Goseeko blog","description":"Learning beyond college, Students platform for life skills.","publisher":{"@id":"https:\/\/www.goseeko.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.goseeko.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.goseeko.com\/blog\/#organization","name":"Goseeko.com","url":"https:\/\/www.goseeko.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.goseeko.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/09\/GoSeeko_Stacked-logo-01.png?fit=2471%2C2471&ssl=1","contentUrl":"https:\/\/i1.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/09\/GoSeeko_Stacked-logo-01.png?fit=2471%2C2471&ssl=1","width":2471,"height":2471,"caption":"Goseeko.com"},"image":{"@id":"https:\/\/www.goseeko.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/goseeko","https:\/\/x.com\/goseeko","https:\/\/www.instagram.com\/goseeko\/"]},{"@type":"Person","@id":"https:\/\/www.goseeko.com\/blog\/#\/schema\/person\/7ec300cd01b6116501943af14d546bae","name":"Team Goseeko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.goseeko.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Goseeko"},"url":"https:\/\/www.goseeko.com\/blog\/author\/team-goseeko\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.goseeko.com\/blog\/wp-content\/uploads\/2021\/05\/electronic-devices-and-circuit.jpg?fit=640%2C425&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/posts\/1904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/comments?post=1904"}],"version-history":[{"count":1,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/posts\/1904\/revisions"}],"predecessor-version":[{"id":6136,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/posts\/1904\/revisions\/6136"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/media\/1530"}],"wp:attachment":[{"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/media?parent=1904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/categories?post=1904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.goseeko.com\/blog\/wp-json\/wp\/v2\/tags?post=1904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}