
{"id":18595,"date":"2011-07-15T12:22:38","date_gmt":"2011-07-15T12:22:38","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=5329"},"modified":"2011-07-15T12:22:38","modified_gmt":"2011-07-15T12:22:38","slug":"gold","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/07\/15\/gold\/","title":{"rendered":"gold &#8211;  The GNU ELF linker"},"content":{"rendered":"<pre>\nIn software engineering, gold is a linker for ELF files. It became an official GNU package and\nwas added to binutils in March 2008[1] [2] and first released in binutils version 2.19. gold\nwas developed by Ian Lance Taylor and a small team at Google.[3] The motivation for writing\ngold was to make a linker that is faster than the GNU linker,[3] especially for large\napplications coded in C++. \n<\/pre>\n<p>[bash]<br \/>\n$gcc -fuse-ld=gold hello.c<br \/>\n$.\/a.out<br \/>\nhello world<br \/>\n$.\/a.out<br \/>\nhello world<br \/>\n$.\/a.out<br \/>\nhello world<br \/>\n$.\/a.out<br \/>\nhello world<br \/>\n$time .\/a.out<br \/>\nhello world<\/p>\n<p>real\t0m0.002s<br \/>\nuser\t0m0.002s<br \/>\nsys\t0m0.001s<br \/>\n$gcc  hello.c<br \/>\n$time .\/a.out<br \/>\nhello world<\/p>\n<p>real\t0m0.002s<br \/>\nuser\t0m0.000s<br \/>\nsys\t0m0.002s<br \/>\n$gcc -fuse-ld=gol hello.c<br \/>\ngcc: error: unrecognized command line option \u2018-fuse-ld=gol\u2019; did you mean \u2018-fuse-ld=gold\u2019?<br \/>\n$<\/p>\n<p>[\/bash]<br \/>\nLINKS<br \/>\n<a href=\"https:\/\/gcc.gnu.org\/onlinedocs\/gcc\/Link-Options.html\">https:\/\/gcc.gnu.org\/onlinedocs\/gcc\/Link-Options.html<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/3476093\/replacing-ld-with-gold-any-experience\">https:\/\/stackoverflow.com\/questions\/3476093\/replacing-ld-with-gold-any-experience<\/a><br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Gold_(linker)\">https:\/\/en.wikipedia.org\/wiki\/Gold_(linker)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In software engineering, gold is a linker for ELF files. It became an official GNU package and was added to binutils in March 2008[1] [2] and first released in binutils version 2.19. gold was developed by Ian Lance Taylor and a small team at Google.[3] The motivation for writing gold was to make a linker &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2011\/07\/15\/gold\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;gold &#8211;  The GNU ELF linker&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[855,1034],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18595"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=18595"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18595\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}