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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:01:13+00:00 2026-06-04T17:01:13+00:00

In 64-bit mode, the default address size is 64 bits. If the address-size override

  • 0

In 64-bit mode, the default address size is 64 bits. If the address-size override prefix (67h) is present, the address size is 32-bits.

I’m aware of the fact that canonical 64-bit addresses have bits 63 through the most significant implemented bit either all 0s or all 1s. Is the 32-bit address (obtained by prefixing 67h to an instruction in 64-bit mode) required to be in canonical form? If yes, how is this canonical form defined?

  • 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-04T17:01:14+00:00Added an answer on June 4, 2026 at 5:01 pm

    Canonical addresses are formed by sign-extending the significant part (the lower 48 bits) of a virtual address; the most significant bit is treated as the sign.

    Speculating on this now (not willing to look it up – but that’s also not necessary to answer your question) – there’s two conceivable behaviours for 32bit addresses in 64bit mode:

    1. The CPU treats it like the use of a 32bit register/operand, i.e. zero-extend to 64bit / implicitly treat the high 32bit as zeroes
      In this case, any 32bit address is canonical because any 64bit address 0x00000000xxxxxxxx is canonical.
    2. The CPU treats it as “32bit significant” and sign-extends to 64bit from the most significant bit of the 32bit address
      In this case as well, any 32bit address is canonical, because then the 32bit range would map from 0xffffffff80000000 … 0x000000007fffffff – again, all of which are canonical.

    Since the result (32bit addresses always implicitly being of canonical form) is the same, it doesn’t matter what the CPU actually does – 32bit addresses are canonical, period.

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

Sidebar

Related Questions

I am going through some example assembly code for 16-bit real mode. I've come
A bit weird... ...if running in IE8 quirks mode or in compatibility view mode,
I'm a bit confused about the understanding of a mode switch in Unix kernel.
Bit support question. Apologies for that. I have an application linked with GNU readline.
Anyone run into this? I realize that 1.6 is the default on OS X,
I'm working on writing a splash screen that returns a game mode (int) and
I tried to run my program compiled with Apple GCC 3.2.1 (forced 32-bit mode,
Doing some profiling (mem & speed) I've been stomped by the fact that win7
Emacs n00b here, I've fiddled a bit with it in graphical mode and so
Bit of a strange question here i know. but i wanted to know if

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.