{"id":42,"date":"2006-12-30T18:32:06","date_gmt":"2006-12-30T18:32:06","guid":{"rendered":""},"modified":"2006-12-30T18:32:06","modified_gmt":"2006-12-30T18:32:06","slug":"building_on_for_cell_spu","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/lu_zero\/2006\/12\/30\/building_on_for_cell_spu\/","title":{"rendered":"Building on\/for Cell\/SPU"},"content":{"rendered":"<p>One of the most annoying things I&#8217;m starting to see are bogus way to check for presence of compilers or lib for SPU support&#8230;<\/p>\n<p>Since it is almost the last day of the year here the top annoying pratices list:<\/p>\n<p>&#8211; misnaming: ppu- isn&#8217;t a valid prefix, powerpc64-unknown-linux-gnu- is, anyway if is the native compiler gcc would do perfectly, if isn&#8217;t someone would provide it to configure so. PLEASE AVOID PPU- <\/p>\n<p>&#8211; misnaming: spu- could be a partially valid prefix, _maybe_ spu-elf- is the correct one . TREAT SPU AS A CROSS TARGET, ALWAYS.<\/p>\n<p>&#8211; bad assumption: I may have a valid spu compiler but _MAYBE_ I didn&#8217;t registered elfspe or elfspe2 on binfmt so I cannot automagically run spu binaries or maybe I don&#8217;t have spufs mounted. TREAT SPU AS A CROSS TARGET, ALWAYS.<\/p>\n<p>&#8211; picking cflags from env: the spu-elf-gcc and the native gcc may not share the same cflags, make sure your configure could pick CFLAGS_{powerpc,powerpc64,spu} as they fit.<\/p>\n<p>&#8211; hardcoding paths: the ibm and the sony sdk are for non native system with non default cross paths, I know beside gentoo and few other crazy people nobody is using alternate paths, still since maybe native system should be expected and _maybe_ less custom paths could appear, please do not hardcode \/opt\/${STI_SDK}\/blah as include\/lib path in your applications or applications patches (like the one for lame). PLEASE KEEP THINGS CLEAN.<\/p>\n<p>Here a top5, luckly there aren&#8217;t that many annoyances =)<\/p>\n<p>Have a great new year.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most annoying things I&#8217;m starting to see are bogus way to check for presence of compilers or lib for SPU support&#8230; Since it is almost the last day of the year here the top annoying pratices list: &#8211; misnaming: ppu- isn&#8217;t a valid prefix, powerpc64-unknown-linux-gnu- is, anyway if is the native compiler &hellip; <a href=\"https:\/\/blogs.gentoo.org\/lu_zero\/2006\/12\/30\/building_on_for_cell_spu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Building on\/for Cell\/SPU<\/span><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[10,3],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1aGWH-G","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/posts\/42"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}