4 ms·
Say hello to x86_64 Assembly, Part 5
- mvklingeren 12y agoI had assembly @uni, but never had the guts to try and make something [useful] with it -> what keeps hanging in my head is, assembly is only good/usefule for compiler builders. Is learning x86 your main goal, or do you plan to..??
- 0xAX 12y agoNo it's not main main goal, my main goal is learning CPU, operating systems, bootloaders and etc...
- mvklingeren 12y agoYes ok, so learning is your main goal :) thats perfectly fine. (some nice info, for the bigger picture in that case http://duartes.org/gustavo/blog/post/how-computers-boot-up/ http://duartes.org/gustavo/blog/post/how-computers-boot-up/ )
- 0xAX 12y agoYes i know abot this blog, really great artucles. Reading and trying to understand linux kernel source code too and planing to write series of blog posts about it after assembly
- frozenport 12y agoSometimes compilers fail us, in particular they often fail to correctly vectorize code. If you do it manually insert the correct instructions you can get a 20% speedup!
- vardump 12y agoSometimes you get 40x speedup. Sometimes you gain nothing.
- vardump 12y agoIt's very useful if you need to get all the performance out of the CPU. Compilers are good for generating code for 10 year old CPUs. It's usually pretty trivial to get 2x improvement. That said, typically you shouldn't bother.
- Yadi 12y agoOw man! Assembly! I spent a quarter creating a calculator (only calculating 2*9). But O boy I learned about computer architecture a lot, just a lot about Flow of logic + OS systems.