0 like 0 dislike
64 views
in Computer Science by (1.0m points)
What is assembly language?

1 Answer

0 like 0 dislike
by (1.0m points)
An assembly (or assembler) language,[1] often abbreviated asm, is any low-level programming language in which there is a very strong correspondence between the program's statements and the architecture's machine code instructions.[2]

Each assembly language is specific to a particular computer architecture and operating system.[3] In contrast, most high-level programming languages are generally portable across multiple architectures but require interpreting or compiling. Assembly language may also be called symbolic machine code.[4][5]

Assembly language usually has one statement per machine instruction, but assembler directives,[6] macros[7][1] and symbolic labels of program and memory locations are often also supported.

Assembly code is converted into executable machine code by a utility program referred to as an assembler. The conversion process is referred to as assembly, or assembling the source code.

Assembler language syntax

Assembly language uses a mnemonic to represent each low-level machine instruction or opcode, typically also each architectural register, flag, etc. Many operations require one or more operands in order to form a complete instruction. Most assemblers permit named constants, registers, and labels for program and memory locations, and can calculate expressions for operands. Thus, the programmers are freed from tedious repetitive calculations and assembler programs are much more readable than machine code. Depending on the architecture, these elements may also be combined for specific instructions or addressing modes using offsets or other data as well as fixed addresses. Many assemblers offer additional mechanisms to facilitate program development, to control the assembly process, and to aid debugging.

Terminology

A macro assembler includes a macroinstruction facility so that (parameterized) assembly language text can be represented by a name, and that name can be used to insert the expanded text into other code.

A cross assembler (see also cross compiler) is an assembler that is run on a computer or operating system (the host system) of a different type from the system on which the resulting code is to run (the target system). Cross-assembling facilitates the development of programs for systems that do not have the resources to support software development, such as an embedded system. In such a case, the resulting object code must be transferred to the target system, either via read-only memory (ROM, EPROM, etc.) or a data link using an exact bit-by-bit copy of the object code or a text-based representation of that code, such as Motorola S-record or Intel HEX.

A high-level assembler is a program that provides language abstractions more often associated with high-level languages, such as advanced control structures (IF/THEN/ELSE, DO CASE, etc.) and high-level abstract data types, including structures/records, unions, classes, and sets.

A microassembler is a program that helps prepare a microprogram, called firmware, to control the low level operation of a computer.

A meta-assembler is a term used in some circles for "a program that accepts the syntactic and semantic description of an assembly language, and generates an assembler for that language."[8]

Assembly time is the computational step where an assembler is run.

Related questions

0 like 0 dislike
1 answer 32 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 57 views
asked Feb 11, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 93 views
0 like 0 dislike
1 answer 17 views
0 like 0 dislike
1 answer 22 views
0 like 0 dislike
1 answer 38 views
asked Nov 16, 2018 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 30 views
0 like 0 dislike
1 answer 29 views
asked Jan 12, 2019 in Pak. Studies by danish (1.0m points)
0 like 0 dislike
1 answer 28 views
asked Apr 1, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 79 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

3.3k users

Free Hit Counters
...