Fact: you can write anything in assembly (obviously).
Fact: you would not want to write most things in assembly.
Assembly is nowadays reserved for:
- boot-strap code
- initilization code
- hardware interrupt code
- software interrupt code
- mode switches, context switches,..
And in terms of applications:
- some compilers, OS's
- many viruses, and virus detection software
- controller software
- firmware (on ROM for example)
- portions of code that need need an extra speed boost or reduction in size
- major portions of embedded code.
This is not true. You can *embed* assembly into C, but then you gain no advantage because to port it, that portion has to be rewritten with the assembly of the target processor anyway. Without embedded assembly, C is not as powerful as assembly, although you can still R/W to memory, memory-mapped I/O, and registers (depending on the OS/monitor).
General application software would be too tedious and error-prone to construct using assembly language. Besides, with today's compiler technology, the old reasons for coding in assembly have all but vanished.
Fact: you would not want to write most things in assembly.
Assembly is nowadays reserved for:
- boot-strap code
- initilization code
- hardware interrupt code
- software interrupt code
- mode switches, context switches,..
And in terms of applications:
- some compilers, OS's
- many viruses, and virus detection software
- controller software
- firmware (on ROM for example)
- portions of code that need need an extra speed boost or reduction in size
- major portions of embedded code.
However I've always thought of C as just a universal Assembly language since it combines all the power of Assembly with all the ease of use of Assembly. It's just that it will work across processor families
This is not true. You can *embed* assembly into C, but then you gain no advantage because to port it, that portion has to be rewritten with the assembly of the target processor anyway. Without embedded assembly, C is not as powerful as assembly, although you can still R/W to memory, memory-mapped I/O, and registers (depending on the OS/monitor).
General application software would be too tedious and error-prone to construct using assembly language. Besides, with today's compiler technology, the old reasons for coding in assembly have all but vanished.