Assembly language - More than one type?

Viewed 37850

I start university in a few weeks (software engineering degree) and know that one of the modules I'll be studying in the first year is 'fundamentals of architecture' or something similar; basically it's learning to program in 'assembly'.

I'm wanting to do some background learning so I'm prepared for it (I've done the same on some other units), but don't know if there is more than one 'assembly language'. How many are there? Is it one per manufacturer, a 32-bit and 64-bit language, or just one standard?

If there is more than one type, what is the most 'popular' or likely to be taught at university level?

3 Answers

In general:

  • there must be at least one completely different assembly language for each different type of CPU (because assembly language is directly related to machine code).

  • for each of those there may be 2 or more categories of assembly language (e.g. "Intel syntax" vs. "AT&T syntax").

  • for each of those there may be many dialects, with minor variations in the syntax for instructions, completely different pre-processors and completely different directives.

If (using random numbers pulled out of thin air) you assume that there are 50 different types of CPUs, an average of 1.5 categories in use for each CPU, and an average of 2 dialects per category; then it'd work out to 150 different assembly languages.

Related