Assembly vs Compilers

The cluster debates the merits of hand-written assembly code versus high-level languages and compilers, discussing performance, maintainability, optimizer effectiveness, and when assembly is necessary.

➡️ Stable 0.8x Programming Languages
3,938
Comments
20
Years Active
5
Top Authors
#2446
Topic ID

Activity Over Time

2007
3
2008
24
2009
67
2010
72
2011
151
2012
142
2013
192
2014
203
2015
176
2016
261
2017
267
2018
241
2019
198
2020
249
2021
223
2022
313
2023
350
2024
277
2025
479
2026
52

Keywords

CS e.g GOTO AI JIT GH HN ISA ALGOL ARM assembly code level languages language assembler compiler high level assembly language write languages

Sample Comments

oneaaronofmany Aug 11, 2022 View on HN

Will compiled languages ever truly disrupt writing assembly code?

Karunamon Jun 15, 2012 View on HN

Don't write programs in assembly. Use a high level language that translates down to assembly.Yknow, most every language ever.If you had read the article, you'd see that the author made this comparison.

vintermann Oct 13, 2025 View on HN

It's hard to imagine it's an improvement over just the raw assembly.

constantcrying Oct 14, 2025 View on HN

Writing assembly is tedious. It takes time and a lot of care. Sometimes it is necessary, e.g. writing certain parts of an OS.Almost always it involves carefully reading documentation, triple checking everything, mentally imagining the state of the processor, especially concerning whether interrupts can occur or what they would cause.Having done it a couple of times I, for the first time, really appreciated the abstraction of e.g. C. It made writing code and reasoning about it a lot easier.

bluGill Nov 26, 2020 View on HN

These days the optimizer is so good few humans can do better over a large program. Even if they can, Intel will release a new cpu, or someone will buy amd and all your asm code is lost while those who write a compiled language just change a flag and get completely different binary.

fouc Apr 16, 2020 View on HN

If you write assembler in a maintainable way, do you still gain lots of benefits over a compiler?

akrymski Apr 5, 2023 View on HN

Sounds like an assembly programmer trying C for the first time. Sure the produced assembly isn't as good as hand written. But with Moore's law, maybe it doesn't matter?

truckerbill Jul 31, 2023 View on HN

"If you're going to write assembly just write assembly."

DudeInBasement Jun 1, 2020 View on HN

Title should be "Why C development is faster if I don't indepth know how to write assembly fast."

vbezhenar Jul 18, 2020 View on HN

You still write performance-critical code using assembly language. C compiler is not ideal.