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

  • Home
  • SEARCH
  • 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 8931691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:10:01+00:00 2026-06-15T09:10:01+00:00

I wrote a Matrix class in C++, I made a benchmark to test this

  • 0

I wrote a Matrix class in C++, I made a benchmark to test this code on a Raspberry Pi, when I used arch Linux the calculation time was 0.4ms, When I used ChibiOS which is RTOS the runtime of the code was 2.5ms. The CPU frequency both case was the same(700Mhz). Can be that the memory operations(calloc, memcpy) is slower in one system?

  • 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-06-15T09:10:02+00:00Added an answer on June 15, 2026 at 9:10 am

    Since you’re using doubles, it’s hard float versus soft float.

    Note that you must not attempt to run hard float binaries on an OS that doesn’t support hard float. If you do, it will appear to work until there’s a context switch between two processes that use hard float. Since the OS won’t save the floating point state on context switches, they’ll step on each other’s floating point contexts and results will be unpredictable.

    I believe the linker will catch this, so unless you write the assembly yourself and don’t use any libraries, it should be difficult to run into this problem accidentally.

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

Sidebar

Related Questions

I wrote this code to overload the unary operator- on a matrix class: const
I wrote a small sparse matrix class with the member: std::map<int,std::map<int,double> > sm; The
I wrote this matrix addition program and I dont know why but I keep
I wrote this piece of code that should make what is described here: Conjugate
EDIT: After spending a bit of time understanding the code I wrote I still
Can somebody please help me to write a DeepCopy routine for this matrix class
I wrote a MPC controller in C++, which included a Matrix class, where I
I am trying to write a trivial Matrix class, using C++ templates in an
I want to write a parallel code that works on a 3D matrix where
I am writing an abstract matrix class (and some concrete subclasses) for use on

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.