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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:47:38+00:00 2026-05-20T04:47:38+00:00

Is it a correct assessment that compiling with -m32 and -mtune=native on a AMD64

  • 0

Is it a correct assessment that compiling with -m32 and -mtune=native on a AMD64 machine will use 32 bits for pointers and hence slightly smaller data structures, and consequently a denser cache packing. My application (it is still in its design stage) will not need more than a GB of memory so a 32 bit address space should be fine. I am hoping to utilize the bit-shrunk data structures for more data in cache, and also the potential to use more registers for integer math. What I am trying to achieve is the best of both worlds, more registers by virtue of -mtune=native, but smaller pointers by -m32. Will the availability of extra registers be taken care of largely automatically or do I have to deal explicitly with sse. I would rather not.

  • 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-20T04:47:38+00:00Added an answer on May 20, 2026 at 4:47 am

    At least if I understand what you want, I don’t think the compiler is going to do the job for you. It’d going to produce either 32-bit or 64-bit code. With 64-bit code, the pointers will be 64 bits — if you want 32-bit pointers, you’re going to have to generate 32-bit code (with its commensurate limitations, such as on what registers it’ll use).

    To get what you want, I’m pretty sure you’ll have to split the pointer up yourself: store a (probably 64-bit) base address, and inside your data structure, store offsets rather than complete addresses. You’ll need to add the base and offset together yourself before you attempt to de-reference though.

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

Sidebar

Related Questions

Is correct to use ContentProvider with dao Pattern. ? or it will bring any
Am I correct in assuming that the only difference between "windows files" and "unix
Am I correct in assuming that I always need to explicitly deploy referenced assemblies
Possible Duplicate: Allen Holub wrote “You should never use get/set functions”, is he correct?
Is it correct that a instance method can be called on a null reference
Am i correct in saying a 16 bit image will be decode and drawn
(please excuse that I didn't use aliases). I would like my query output to
Just looking to see if my assessment is correct on the easiest way to
(Please correct me if i am wrong) I understand that when you run a
What is the correct way to use a placeholder image? I want to fill

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.