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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:46:27+00:00 2026-06-16T01:46:27+00:00

I wrote a small piece of code and compiled it with gcc -S to

  • 0

I wrote a small piece of code and compiled it with gcc -S to see the ASM output:

...
movl    %esp, %ebp
.cfi_def_cfa_register 5
subl    $16, %esp
movl    $0, -4(%ebp)
...

Now I expect that on Linux a call to objdump -D (disassemble) lead to an equivalent structure but it looks like:

80483b5:   89 e5                   mov    %esp,%ebp
80483b7:   83 ec 10                sub    $0x10,%esp
80483ba:   c7 45 fc 00 00 00 00    movl   $0x0,-0x4(%ebp)

Why do I get mov / sub instead of movl /subl?

  • 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-16T01:46:28+00:00Added an answer on June 16, 2026 at 1:46 am

    The outputs are equivalent. The b/l/etc. prepended to the end of instructions is simply a way of telling the reader the size of the data being manipulated. The underlying x86 architecture makes no such internal distinguishment since the sizes can be inferred from the operands. The sizes are an AT&T syntax ‘idiom’/sugar which seems to have not been used consistently across the gcc toolchain and objdump from binutils.

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

Sidebar

Related Questions

I wrote a small piece of code using the dsofile.dll component to modify document
I wrote this small piece of code in C to test memcmp() strncmp() strcmp()
I wrote a small piece of code that rapidly read and write to a
I am new to JQuery. I wrote a small piece of code ( fiddle
I am new to jquery . I wrote small piece of code <div id=tablediv><table><tr><td><h2>Select
I am trying to write a small piece of my code in GCC style
I wrote this small piece of code to test something: #include <stdio.h> int main()
I've wrote a small piece of code that reads the current battery charge/discharge on
I wrote small piece of code which should toggle reporting box on my page.
Begginer's question. I'm trying to write small piece of code in Visual Studio (VB.net)

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.