Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3270816
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:40:23+00:00 2026-05-17T18:40:23+00:00

Hei! I need to optimize some matrix multiplication code in c, and I’m doing

  • 0

Hei!

I need to optimize some matrix multiplication code in c, and I’m doing it using SSE vector instructions. I also found that there exists SSE4.1 that already has instruction for dot-product, dpps.

The problem is that on machine this software is supposed to work there is an old version of gcc installed (4.1.2), which has no support for SSE4.1, but it has a processor that supports it (don’t ask me why gcc version is older than processor…). So I cannot use _mm_dp_ps function.

I was playing around a bit with adding some assembler code to c. The problem is I have never before used assembler code so it’s really confusing. Also is it more efficient to write all the code that is dealing with vector instructions in assembler?

So I am asking here if there are any other ways how to use dpps instruction, and if it is even worth using?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:40:24+00:00Added an answer on May 17, 2026 at 6:40 pm

    Frankly, I do not see the problem. From your description, it seems that the machine on which the final code needs to be executed supports SSE4.1 and DPPS. Therefore, once your source code – including the instrinsic (or assembly) – is compiled, it can be executed on this machine. You would only have to get your code compiled with a newer version of the compiler, either by installing a newer version on the machine you are talking about or by compiling on a different machine and then copying the executable to the machine it’ll have to run on.

    As to whether optimisation with DPPS is worth the effort, that will depend on your code (i.e., how much potential for optimisation there is — you should profile thoroughly to find out where your bottlenecks are) and how important performance actually is in this specific case (i.e. is it worth your time?; time is money)

    Obviously, if you have little assembly experience, implementing your routine in asm, or maybe even just writing your own asm wrapper function around DPPS, becomes less attractive. (But it is certainly possible to do.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hei, Using Linq to SQL (ala NorthWind database for example): How to select all
Hei all I have this code function prototype( str , id ) { var
hei. the language is java. i want to extend this class which the constructor
Hei I’m trying to learn Linq to SQL and wondering if somebody can suggest
Hei guys, I have the following problem: As I can see those arrows are
Hei guys i have this JQuery Ajax call from my view and it looks
I have such a problem. I'm using EF1 with VS2008 SP1 & MySQL with
Hei, I have a method from a class in a custom library which I
Hei! I have an image and on that image I'd like to select a
i use this code to create thumbnails System.Drawing.Image.GetThumbnailImageAbort abort = new System.Drawing.Image.GetThumbnailImageAbort(this.ThumbnailCallback); System.Drawing.Image image2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.