this post was submitted on 01 Apr 2025
33 points (88.4% liked)

Programmer Humor

35334 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] bodaciousFern@lemmy.dbzer0.com 0 points 9 months ago (5 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 3 points 9 months ago (4 children)

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

[–] h4x0r@lemmy.dbzer0.com 3 points 9 months 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.

[–] firelizzard@programming.dev 0 points 9 months 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.

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)