{"id":7223,"date":"2013-03-31T20:45:47","date_gmt":"2013-04-01T01:45:47","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7223"},"modified":"2013-03-31T20:45:47","modified_gmt":"2013-04-01T01:45:47","slug":"universal-procedure-pointers","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/03\/31\/universal-procedure-pointers\/","title":{"rendered":"Universal Procedure Pointers"},"content":{"rendered":"<p><a href=\"http:\/\/orangejuiceliberationfront.com\/universal-procedure-pointers\/\">Uli Kusterer<\/a>:<\/p>\n<blockquote cite=\"http:\/\/orangejuiceliberationfront.com\/universal-procedure-pointers\/\"><p>A UPP was a simple data structure that described the calling conventions and location of a PowerPC function in RAM, and started with a 68000 instruction. This data structure could be handed to any system function where it expected a callback, and could be executed by 68000 code just like a function pointer.<\/p>\n<p>[&#8230;]<\/p>\n<p>But of course the Intel CPU didn&rsquo;t have that [endian] switch. And since an emulator only knows about raw bytes, the PowerPC emulator (&ldquo;Rosetta&rdquo;) in Intel Macs could not transparently convert the stored bytes. So it was decided to not allow mixing of PowerPC or Intel code at all. There would only be a tiny bit of translation at the point when a PowerPC application called into the system.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Uli Kusterer: A UPP was a simple data structure that described the calling conventions and location of a PowerPC function in RAM, and started with a 68000 instruction. This data structure could be handed to any system function where it expected a callback, and could be executed by 68000 code just like a function pointer. [&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":[401,295,261,30,402,71],"class_list":["post-7223","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-680x0","tag-history","tag-intel","tag-mac","tag-powerpc","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7223","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=7223"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7223\/revisions"}],"predecessor-version":[{"id":7224,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7223\/revisions\/7224"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}