Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

what languages are used to write assemblers?

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

can u plz give me example of assembly languages

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

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

OpenStudy (farmdawgnation):

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. ;)

OpenStudy (anonymous):

@farmdawgnation that means that even the c++ compiler can produce assembly code?

OpenStudy (anonymous):

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++.

OpenStudy (farmdawgnation):

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.

OpenStudy (anonymous):

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.

OpenStudy (farmdawgnation):

@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.

OpenStudy (anonymous):

@Ktobah : I think you are confusing assembly language and machine code.

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

thank u all.this was very enlightening

OpenStudy (anonymous):

You're welcome.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!