this post was submitted on 01 Apr 2025
171 points (89.4% liked)

Programmer Humor

34790 readers
18 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] bodaciousFern@lemmy.dbzer0.com 3 points 3 days ago (1 children)

I was actually tempted to try learning nasm for funsies a year or two ago until I discovered it doesn't support ARM processors ๐Ÿฅฒ

[โ€“] firelizzard@programming.dev 12 points 3 days ago (1 children)

Assembly languages are always architecture specific. Thats kind of their defining feature. Assembly is readable machine code.

[โ€“] h4x0r@lemmy.dbzer0.com 6 points 3 days ago (1 children)

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.

[โ€“] 0x0@lemmy.dbzer0.com -2 points 2 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.