[LAD] How do you improve optimization for integer calculations?

Nikita Zlobin cook60020tmp at mail.ru
Mon Apr 8 10:52:38 CEST 2019


In Sun, 7 Apr 2019 22:27:34 +0200
Maarten de Boer <mdb.list at resorama.com> wrote:

> > Looks like you propose to use intel-specific intrinsics. I already
> > looked gcc docs in hope to find something similar, but only found
> > vectorization section, from C extensions. Hoped to see something
> > probablt gcc-specific, but not intel-spec.  
> 
> I am not sure if I understand what you mean, but Intel’s SSE
> intrinsics are well supported by gcc.
> 
> This might be a good read:
> https://www.it.uu.se/edu/course/homepage/hpb/vt12/lab4.pdf
> <https://www.it.uu.se/edu/course/homepage/hpb/vt12/lab4.pdf>
> 
> > […] Probably -O3 shuffled code too hard to
> > correctly represent in debugger even with -g :/   
> 
> Instead of using the debugger to look at the assembly, you could use
> objdump -S -l on the object file
> 
> -S, --source     Intermix source code with disassembly
> -l, --line-numbers     Include line numbers and filenames in output
> 
> Good luck.
> 
> Maarten
> 
> 
> 
> 
> 
> 

Thanks!
I tried gcc option -save-temps just before objdump, but second with
give options seems to be way more useful :).


More information about the Linux-audio-dev mailing list