Hacker News new | ask | show | jobs
by maccard 4478 days ago
Are there any books available that someone could recommend for me to go down this route, specifically for hand crafting assembly routines inside my C++ programs. (note I'm currently only compiling for 32 bit). It's something of interest to me, but I've never gotten around to it. I'm comfortable with ARM assembly, and have a solid enough understanding to proceed, but the references I've come across so far go as far as "here's how to embed a simple ASM snipped inside your code, now you know how to do it" and then skip to "copy and paste for specific routine". I'd like some exercises for in between stages, for stuff that might actually be worthwhile doing.
1 comments

If you are using GCC and Linux, you might find "Programming from the Ground Up" to be a useful resource: ftp://gnu.mirrors.pair.com/savannah/pgubook/ProgrammingGroundUp-1-0-booksize.pdf

You may find Agner Fog's Optimization series helpful too: http://www.agner.org/optimize/

Check out every volume, as each has very useful information tucked away. For example, "Calling Conventions" is great for understanding how C++ and assembly interfaces should work.