Asembly vs. C , C++, Java

Status
You're currently viewing only Level_7's posts. Click here to go back to viewing the entire thread.
Not open for further replies.
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.


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.
 
I need to write a rapid prototype for my project. Does it's good idea to use Assembly for that? Or it's better to use C or C++ or Java
Thanks a lot

If by "rapid" you mean you want it developed quickly, then assembly is *definitely* not the way to go. Development and especially debugging will be comparatively painstaking.

Use a high level language like C++ or Java. Its more of a personal preference as to which is better for your situation. Java will be really quick to 'whip something together' because of its great assortment of packages.
 
Status
You're currently viewing only Level_7's posts. Click here to go back to viewing the entire thread.
Not open for further replies.