• h4x0r@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 days ago

    nasm is an assembler though, not a ‘languages’, that only supports x86/x64. gas for example supports a wide range of architectures so you can write risc-v, arm, x64, etc.

    • Trailblazing Braille Taser@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      arrow-down
      4
      ·
      3 days ago

      Are you arguing that assembly languages are not architecture-specific? I don’t think that’s the typical definition.

      Nasm is an assembler, but it also represents a specific assembly language targeting x86 architectures.

      Gas is an assembler of a higher order. It can emit code for many architectures, and thus it accepts many different architecture-specific assembly languages.