4 ms·
> by virtue of using C you will learn Assembly. I don't believe this at all. You won't learn how to deal with limited numbers of registers. You won't learn abo
by UncleMeat 4y ago
> by virtue of using C you will learn Assembly.
I don't believe this at all. You won't learn how to deal with limited numbers of registers. You won't learn about method prologues and epilogues. You won't learn about oodles of stuff.
- Jensson 4y ago> You won't learn how to deal with limited numbers of registers. You won't learn about method prologues and epilogues. Those things takes like an hour to learn, translating C to assembly is trivial, it takes time and will be verbose but it isn't hard at all. So even though you don't learn all the details you still learn all the higher level stuff related to assembly programming when you program in C. This isn't true for other languages, translating arbitrary C++ or Java or Javascript to assembly is really hard, so they don't teach you to think like an assembly programmer.
- dijit 4y ago> deal with limited numbers of registers I mean; you will likely end up stepping through debuggers where you will see registers being used. At least if you learned C like I learned C. Similarly for Prologue and Epilogue. "why does a function call have a cost" is a common question and it's solved forever after an hour googling.