this post was submitted on 01 Apr 2025
167 points (89.2% liked)

Programmer Humor

34866 readers
625 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
[–] h4x0r@lemmy.dbzer0.com 6 points 1 week ago (3 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.

[–] MasterNerd@lemm.ee 1 points 18 hours ago

The reason I used the nasm logo is because Assembly itself doesn't have a logo since it's not really one language. This is the one I'm with the most familiar with so that's the one I used. This meme would apply to any Assembly language.

[–] firelizzard@programming.dev 0 points 5 days ago

nasm is an assembler though, not a ‘languages’

That's like saying "clang is a compiler though, not a language". It's correct but completely beside the point. Unless you're writing a compiler, "cross platform assembler" is kind of an insane thing to ask for. If want to learn low level programming, pick a platform. If you are trying to write a cross-platform program in assembly, WHY!? Unless you're writing a compiler. But even then, in this day and age using a cross-platform assembler is still kind of an insane way to approach that problem; take a lesson from decades of progress and do what LLVM did: use an intermediate representation.

[–] 0x0@lemmy.dbzer0.com -2 points 1 week 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.