what languages are used to write assemblers?
Assembly by it self, it's a language! But it's a low level language not like C++ or Java, which they are high level languages.
can u plz give me example of assembly languages
assembly language is specific to computer architecture. They will be different for micro-controller, microprocessor and for AMD and Intel microprocessor. Still assembly languages are written in C, C++ or Objective C.
Here a helpful link from wikipedia, well don't read all the details you can read just the beginning of the document. It has examples too. http://en.wikipedia.org/wiki/Assembly_language
jagan, your answer is mostly right. Although the language itself isn't written in C. The C compiler produces assembly code. These two statements are not the same. I'm pretty sure you intended to say the latter. ;)
@farmdawgnation that means that even the c++ compiler can produce assembly code?
What i meant was the assembler which convert assembly code in to machine language code.Which can be executed on the computer architecture are written in c,c++.
Ah, jagan, that may be true. I imagine there are some that are written in assembly themselves though. The conversion process from assembly to machine code is pretty trivial for most architectures.
Well all languages produce an assembly code, else Java because it has another design, it uses what we called VM = Virtual Machine, so it produces what we called : Bytecode.
@beketso ^ What ktobah said. There are more or less three classes of programming languages from this point of view. - Compiled native: Languages like C/C++. These compile directly into machine code. - Compiled virtual/bytecode: Languages like Java or .NET. These compile into some unique code that is interpreted into machine code on-the-fly when you're running the program. - Interpreted: These languages are not compiled at all. They are read by an interpreter that executes the instructions on their behalf (i.e. PHP or Ruby). So, yes, C/C++ produces assembly, which is then converted to machine code. When you run gcc or g++ this entire process (from C to machine code) is done for you.
@Ktobah : I think you are confusing assembly language and machine code.
Well what I meant is that C/C++ transform your high level code into a mnemonic code (Assembly language) and this code will be transformed to a machine code. And this is not the case with Java.
thank u all.this was very enlightening
You're welcome.
Join our real-time social learning platform and learn together with your friends!