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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:42:13+00:00 2026-06-11T17:42:13+00:00

Does mov 0x10(%esp),%esi take more time to complete than mov (%ebx),%esi on a modern

  • 0

Does mov 0x10(%esp),%esi take more time to complete than mov (%ebx),%esi on a modern CPU?

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

    According to Intel’s optimization manual, table 2-8, on Sandy Bridge the load latency for just a base register or a base plus an offset of less than 2048 is 4 cycles, while for a base plus index plus offset or base plus an offset of 2048 or greater is 5 cycles. So in your example, the two instructions should take an equal amount of time. If you were using an offset of 2048 or greater, that would take longer.

    Of course, if the memory isn’t in your L1 cache, this won’t really matter, since the cost of the memory access will dwarf the cost of everything else.

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

Sidebar

Related Questions

I'm not sure what this inline assembly does: asm (mov %%esp, %0 : =g
We're trying to take an existing video with audio (.mov) and make a more
what does this command do in assambly ? mov ebx, [eax+ecx*4+12] does it do
The problem exists at 017D0B5F call eax : 017D0B56 mov esi,esp 017D0B58 mov edx,dword
What does the following code do... 0x080489b0 <+0>: push %ebp 0x080489b1 <+1>: mov %esp,%ebp
What does this syntax mean? I'm specifically unsure about the missing base address mov
What does this line do in the following code? 0x0804840c <+3>: mov 0x8(%ebp),%edx I
Are these two instructions performing the same operation: mov $0x80000000, %esp mov $0x80000000, (%esp)
What approach does GDB take to determining the length of a function? I noticed
Consider this x86 assembly code: section .data foo: mov ebx, [boo] mov [goo], ebx

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.