4 ms·
Well, I had in mind something more useful and realistic, not less; namely teaching assembly in normal Linux environment. Sure, there are all sorts of complexiti
by zokier 8y ago
Well, I had in mind something more useful and realistic, not less; namely teaching assembly in normal Linux environment. Sure, there are all sorts of complexities there too, but in general I feel like they are also more worthwhile.
- msla 8y ago> Well, I had in mind something more useful and realistic, not less; namely teaching assembly in normal Linux environment. This might sound odd, but as someone who's done some assembly programming under Linux, it usually isn't different enough from C to be worth the effort. Even if you eschew libc, the kernel APIs are still fairly high-level and, more to the point, there are no new concepts relative to C: You have pointers and pointer arithmetic, you have fixed-size buffers, you have ints and doubles, and the rest is just syntax. The exception is doing something like a really tight high-performance kernel using SIMD opcodes, which necessarily involves learning a lot about the specific SIMD hardware and data organization to optimize cache use and other details C can't express.
- e12e 8y agoIndeed. Maybe something along the lines of (or building up to) : "Sshtalk: An SSH-based chat made in assembler" : https://news.ycombinator.com/item?id=15829206 https://news.ycombinator.com/item?id=15829206 The library comes with a lot, but network stuff and Unicode support to name a few: https://2ton.com.au/HeavyThing/ https://2ton.com.au/HeavyThing/