What is Assembler?

Software that converts a program written in assembly language into machine instruction bit patterns. It turns labels into addresses and expands pseudo-instructions into real instructions.

Field: ISA & Assembly

Assembler in the explanations

Questions that mention Assembler (5)

  1. Which real instruction does the assembler use for the RISC-V pseudo-instruction "nop" (do nothing)?
  2. What is the relationship between assembly language and machine code?
  3. In RISC-V, what is the usual way to put a 32-bit constant that does not fit in a 12-bit immediate (e.g. 0x12345678) into a register?
  4. RISC-V conditional branches (B-type) encode the distance as a 13-bit signed byte offset whose lowest bit is always 0 and not stored. Roughly what range can a branch reach directly?
  5. What is the usual sequence for producing an executable from a C program?

Related terms

Pseudo-instruction Instruction set architecture (ISA) Object file Linker Addressing mode Application binary interface (ABI) Branch delay slot Callee-saved register Caller-saved register Calling convention

Back to the glossary