Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

philippecp

philippecp philippecp

Niner since 2012

  • Getting the most out of the C++ compiler

    @Charles:Great, that blog was exactly what I was looking for! Now if only an almighty moderator could add a link to this blog as a "see also" in the video description so that other curious minds that have had their interest piqued can dig deeper, that would be wonderful Wink

  • Getting the most out of the C++ compiler

    I find the title misleading. I was expecting some tips on how to write code in order to increase the likelihood of the compiler vectorizing a loop. Furthermore, I am left with the following questions:

    1. Does the array size need to be known at compile time?
    2. Do you need to use the index syntax (array[i]) or can you use pointers? What about iterators?
    3. Can the compiler vectorize operations on a std::vector<> ?
    4. Are there any operations that will prevent the compiler from vectorizing? ex. branching, trigonometry functions etc.
    5. If the compiler detects a cross-iteration dependency on one of the many operations in a loop, will it split the work in one vectorized loop and one scalar loop?