Yes, you can write an 8086-assembler in C or C++. It is not that easy, though.
It is posible with asm or __asm__ directive with combination of volatile or __volatile__ for non memory affecting code.
Sample:
__asm__ ("mov %ax, %bx");
Move content of ax registry to bx.
Follow howto page for tutorial. http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
There is no such thing. An "assembler" is a program that converts assembly language code, into machine language. Other programming languages have a "compiler", which is more or less equivalent.
The first generation C++ compiler was written in C. Newer generations of C++ compilers are written using the previous generation of C++, however some implementations also use assembler, either in part or in whole. Bear in mind that one of the first programs ever written for a computer was an assembler. Before assembler, all code had to be written in machine code, the native language of the computer, which was labour intensive and prone to error. But that was exactly how the first generation assembler had to be written. Thereafter, the assembler was used to create the next generation assembler, and the next, until high-level languages began to appear (again, written in assembler), until C finally appeared, which eventually led to C++.
The assembler is translator which converts assembly language code into machine language code.
an assembler is a program,just like a compiler.that processes staaements written in a particular high level language and produces an object code in a low level language (assembly language) that the computer can understand.
A compiler produces object code, which is an obj file.
Machine Code, Assembler, & High Level (FORTRAN, COBOL, C).
It is high-level because it uses abstraction. That is, a single C++ instruction can easily create several dozen assembler instructions. Assembler is low level because every symbolic instruction translates directly into machine code -- there is very little in the way of abstraction. Thus the coder is almost entirely responsible for the integrity of their code, down to the minutae, and errors can be difficult to spot due to the lack of the safeguards that C++ automatically provides. C++ is not a low-level language per se, but it does include low level features, such as direct manipulation of memory contents via pointer variables, including pointers to functions. Also, by examining the resulting assembler instructions, code can be optimised to a much higher degree than is possible with more abstract languages, such as Java. Thus highly efficient code comparable to that of assembler can be produced.
Sometimes, it is. Some implementations compile C++ code into C code, and then compile the C code.
Yes, if you have a suitable compiler and environment. Microsoft's Visual C/C++ 1.52C 16-bit development system did exactly that. There are other compilers as well.
Compliers are used to convert C++ into assembly code. Then a tool called an "assembler" converts that code into machine code. Finally, a "linker" connects all of those machine code files into a single executable.
Unix is primarily written in the C language, with some small snippets of assembler code for low level bootstraps.
It is used to distinguish between the C or C++