178
you are viewing a single comment's thread
view the rest of the comments
[-] bodaciousFern@lemmy.dbzer0.com 3 points 3 months ago

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 months ago

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

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

[-] firelizzard@programming.dev 0 points 3 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)
this post was submitted on 01 Apr 2025
178 points (89.0% liked)

Programmer Humor

37063 readers
21 users here now

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

Rules:

founded 5 years ago
MODERATORS