G+_R. A. Posted January 30, 2015 Share Posted January 30, 2015 This is a question with regards to assembly language programming, the topic of show 52 ( http://twit.tv/show/coding-101/52 ). When you write a program in assembly language, do you have to write multiple versions to work on the various types of cpu / computer architectures (kind of like how mobile apps are written for ios, android, blackberry and windows phone) or is there a java like platform in assembly where you can write in a pseudo-assembly langauge and it will be translated to the correct assembly instruction for each target platform. The reason I am asking this question is that I am thinking of learning assembly language, but if there are multiple versions, like say one for windows, one for Mac and one for linux, then it might not be worth investing time to learn. Thanks. http://twit.tv/show/coding-101/52 Link to comment Share on other sites More sharing options...
G+_Larry Weiss Posted January 30, 2015 Share Posted January 30, 2015 Each CPU has its own version of an assembly language. So, the code is not portable when using these assembly languages. There are also assembly languages invented for hypothetical computers and the assembly languages for these are portable with the assistance of a program that translates the instructions before execution. Examples of these are MSIL and Java ByteCode. Read more at https://en.wikipedia.org/wiki/Common_Intermediate_Language and https://en.wikipedia.org/wiki/Java_bytecode Link to comment Share on other sites More sharing options...
G+_Lee Crocker Posted January 31, 2015 Share Posted January 31, 2015 Not only is every chip architecture different, but every OS on each chip, different versions of chips of the same architecture, and even different assemblers. The lowest-level close to the hardware languages that are portable are C and Go. Link to comment Share on other sites More sharing options...
G+_R. A. Posted January 31, 2015 Author Share Posted January 31, 2015 Thanks guys, I think I will focus my attention on learning c and go. Link to comment Share on other sites More sharing options...
Recommended Posts