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 8678371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:42:10+00:00 2026-06-12T20:42:10+00:00

Possible Duplicate: Purpose of memory alignment I read some articles on net about memory

  • 0

Possible Duplicate:
Purpose of memory alignment

I read some articles on net about memory alignment and could understand that from properly aligned memory (take 2-byte alignment) we can fetch data fastly in one go.

But if we have memory like a single hardware piece, then given an address, why cannot we read 2-byte directly from that position. like: enter image description here

I thought over it. I think that if the memory is in odd-even banks kind of then the theory would apply.

enter image description here

What am i missing ?

  • 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-12T20:42:11+00:00Added an answer on June 12, 2026 at 8:42 pm

    Your pictures describe how we (humans) visualize computer memory.

    In reality, think about memory as huge matrix of bits.
    Each matrix column has a “reader” attached that can read/write any bit from this column.
    Each matrix row has a “selector”, which can select the specific bit that the reader will read/write.

    Therefore, this reader can read the whole selected matrix row at once.
    Length of this row (number of matrix columns) define how much data can be read at once.
    For instance, if you have 64 columns, your memory controller can read 8 bytes at once (it usually can do more than that though).

    As long as you keep your data aligned, you will need less of these memory accesses.
    Even if you need to read just two bits, but they are located on different rows, you will need two accesses to memory instead of one.

    Also, there’s a whole aspect of writing, which is a different problem.

    Just as you can read the whole row, you also can write the whole row.
    If your data isn’t aligned, when you write something that is not a full row, you will need to do read-modify-write (read the old content of the row, modify the relevant part and write the new content).

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

Sidebar

Related Questions

Possible Duplicate: php get microtime from date string For a specific purpose, I need
Possible Duplicate: What is the purpose of vshost.exe file? When a .NET application is
Possible Duplicate: What exactly are hashtables? I understand the purpose of using hash functions
Possible Duplicate: Purpose of else and finally in exception handling I'd like to understand
Possible Duplicate: What's the purpose of the Tuple(T1)/Singleton in .net? Is the only reason
Possible Duplicate: What is the purpose of a self executing function in javascript? Please,
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: What’s the purpose of the LEA instruction? LEA instruction? So I'm working
Possible Duplicate: What is the purpose of wrapping whole Javascript files in anonymous functions
Possible Duplicate: What is the purpose of the expression “new String(…)” in Java? What's

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.