{"id":530,"date":"2014-06-24T22:32:28","date_gmt":"2014-06-25T02:32:28","guid":{"rendered":"http:\/\/jonesling.us\/blog\/?p=530"},"modified":"2015-02-02T13:16:49","modified_gmt":"2015-02-02T18:16:49","slug":"gcc-tuning","status":"publish","type":"post","link":"https:\/\/blog.jonesling.us\/?p=530","title":{"rendered":"GCC Tuning"},"content":{"rendered":"<p>File this under <em>&#8220;things that should be obvious but I just found out about&#8221;<\/em>.\u00a0 GCC will tell give you optimal flags for your processor.\u00a0 To wit:<\/p>\n<blockquote><p><code>echo \"\" | gcc -march=native -v -E - 2&gt;&amp;1 | grep cc1<\/code><\/p><\/blockquote>\n<p>Stick the results into your make file or command-line call to GCC and your executable should be as optimized for your processor as GCC can make it.<\/p>\n<p>You could, of course, always use <code>--march=native<\/code>\u00a0 and forget all that but that doesn&#8217;t work so well if you&#8217;re cross-compiling.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>File this under &#8220;things that should be obvious but I just found out about&#8221;.\u00a0 GCC will tell give you optimal flags for your processor.\u00a0 To wit: echo &#8220;&#8221; | gcc -march=native -v -E &#8211; 2&gt;&amp;1 | grep cc1 Stick the results into your make file or command-line call to GCC and your executable should be &hellip; <a href=\"https:\/\/blog.jonesling.us\/?p=530\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GCC Tuning&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,32],"tags":[92],"class_list":["post-530","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming-2","tag-gcc"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4o3FW-8y","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=530"}],"version-history":[{"count":2,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/530\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}