Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning SSE/SSE2 and asm optimizations

I'm familiar with C/C++ and assembly x86/x64 language, but now I need to study graphic optimizations (SSE/SSE2 and asm optimizations in general), what resources/books/links may I use to learn these topics? I've been searching across the web without much luck

like image 668
Marco A. Avatar asked Feb 07 '13 11:02

Marco A.


1 Answers

Marco,

Three point response below :

  1. If you want to learn a set of quick tricks, there are books available under general titles of algorithmic puzzles. The following two I have used and provide excellent challenge set to hone your skills. Book1 is a collection of some very interesting tricks. I also enjoyed this Book2.

Prof Agner's posts I think are the last word on the subject and they are a must read.

  1. If you are seeking specifics of how to optimize, or use the 64 bit instruction set - my experience has been is to keep the Intel Manual Vol 2 handy. You may raise a specific question in this forum and get some excellent solutions. If you are seeking to start at a little more basic level, there is an excellent set of youtube tutorials by WhatsACreel - the coverage and explanations are superb. He takes you to AVX/AVX2 set over 60 odd sessions starting from basics.

  2. I am not a professional programmer - I am a businesses management professional, but write 64 bit assembly language codes for academic institutions/folks whose PhD's are stuck or suffering/some such people in this ilk/ in my spare time. I think x64 is extremely powerful, beautifully compact, and does what no language can try and do. So, if anyone is trying to discourage you from writing in x64, citing complexity, or whatever else, please show them a disassembly of code generated by any compiler of their own choice :-) (should scare them enough) or, just gently ignore them.

All the best,

like image 88
quasar66 Avatar answered Nov 15 '22 19:11

quasar66