{"action":"created","issue":{"url":"https://api.github.com/repos/skeeto/pure-linux-threads-demo/issues/1","labels_url":"https://api.github.com/repos/skeeto/pure-linux-threads-demo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/skeeto/pure-linux-threads-demo/issues/1/comments","events_url":"https://api.github.com/repos/skeeto/pure-linux-threads-demo/issues/1/events","html_url":"https://github.com/skeeto/pure-linux-threads-demo/issues/1","id":94309971,"number":1,"title":"What to do if I want to run the demo on another architecture?","user":{"login":"iku000888","id":11477585,"avatar_url":"https://avatars.githubusercontent.com/u/11477585?v=3","gravatar_id":"","url":"https://api.github.com/users/iku000888","html_url":"https://github.com/iku000888","followers_url":"https://api.github.com/users/iku000888/followers","following_url":"https://api.github.com/users/iku000888/following{/other_user}","gists_url":"https://api.github.com/users/iku000888/gists{/gist_id}","starred_url":"https://api.github.com/users/iku000888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iku000888/subscriptions","organizations_url":"https://api.github.com/users/iku000888/orgs","repos_url":"https://api.github.com/users/iku000888/repos","events_url":"https://api.github.com/users/iku000888/events{/privacy}","received_events_url":"https://api.github.com/users/iku000888/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T13:42:32Z","updated_at":"2015-07-10T14:51:13Z","closed_at":null,"body":"***Complete Nube Alert***\r\n\r\nOn my machine, make plain-text produces:\r\n\r\nnasm -felf64 -g -o threads.o threads.s\r\nld  -o plain-threads threads.o \r\nld: i386:x86-64 architecture of input file `threads.o' is incompatible with i386 output\r\nMakefile:5: recipe for target 'plain-threads' failed\r\nmake: *** [plain-threads] Error 1\r\n\r\nIs there any one-stop kind of suggestion for this demo?\r\n"},"comment":{"url":"https://api.github.com/repos/skeeto/pure-linux-threads-demo/issues/comments/120427803","html_url":"https://github.com/skeeto/pure-linux-threads-demo/issues/1#issuecomment-120427803","issue_url":"https://api.github.com/repos/skeeto/pure-linux-threads-demo/issues/1","id":120427803,"user":{"login":"skeeto","id":29988,"avatar_url":"https://avatars.githubusercontent.com/u/29988?v=3","gravatar_id":"","url":"https://api.github.com/users/skeeto","html_url":"https://github.com/skeeto","followers_url":"https://api.github.com/users/skeeto/followers","following_url":"https://api.github.com/users/skeeto/following{/other_user}","gists_url":"https://api.github.com/users/skeeto/gists{/gist_id}","starred_url":"https://api.github.com/users/skeeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skeeto/subscriptions","organizations_url":"https://api.github.com/users/skeeto/orgs","repos_url":"https://api.github.com/users/skeeto/repos","events_url":"https://api.github.com/users/skeeto/events{/privacy}","received_events_url":"https://api.github.com/users/skeeto/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T14:51:13Z","updated_at":"2015-07-10T14:51:13Z","body":"\nIt's strictly for x86_64 and will not work on another architecture\nwithout being rewritten. This is why \"high level\" programming languages,\nlike C, are so valuable: they execute the same way across different\nmachines without adjustment. From the linker output, it looks like\nyou're using 32-bit x86? Since 32-bit x86 is quickly diminishing the\nsame way 16-bit x86 did 20 years ago, I don't really bother supporting\nit anymore. It will soon be a dead architecture.\n\nIf you're feeling ambitious, you could try to porting it to 32-bit x86.\nChange the \"bits 64\" at the top to \"bits 32\", change the system call\nnumbers (write 4, mmap 90, clone 120, exit 1), change \"syscall\" to \"int\n0x80\", and switch everything over to 32-bit registers (rax -> eax, rdi\n-> edi, etc.).\n"}}