Jump to content

This is a question with regards to assembly language programming, the topic of show 52 (


G+_R. A.
 Share

Recommended Posts

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

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

 Share

×
×
  • Create New...