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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:28:22+00:00 2026-05-22T17:28:22+00:00

I have been recently learning x86 assembly language via GNU Assembler on Ubuntu by

  • 0

I have been recently learning x86 assembly language via GNU Assembler on Ubuntu by the book Programming Ground UP at somewhere on the internet.

There are always 2 sections that’s a “Must-Have” when creating a function:

At the beginning, it’s considered to save old %ebp and set new frame pointer

pushl %ebp

movl %esp,%ebp

At the end, it’s used to restore old %ebp and pop out return address

movl %ebp, %esp

popl %ebp

ret

please help me know what’s really happen and what’s that used for.
– Why they must copy the bottom-most stack pointer to %ebp to set a new frame pointer?
– And why the must copy back the %ebp to %esp when done ?
– When copy without ( ) is that just an address ?

Thanks.

  • 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-22T17:28:22+00:00Added an answer on May 22, 2026 at 5:28 pm

    This is a function perilogue. The Frequently Given Answer giving the gen on function perilogues explains what’s happening, stack frames, and the frame pointer register.

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

Sidebar

Related Questions

I have recently been learning F# and functional programming. One application I have found
Recently I have been learning about WMI and WQL. I found out the list
I come from classes object orientation languages and recently I have been learning those
I've been a web developer for some time now, and have recently started learning
I have been recently digging into Mobile Programming, I practically tried out the J2ME
I have recently been learning more about design patterns and thought I'd take a
I have recently been using junit in eclipse and I am still learning. I
I have been learning .MVC recently and am having trouble understanding how to process
I have been learning MVVM/EF4 (for C#) recently and have followed Julie Lerman's videos.
I have been working on learning C++ and Qt4 recently, but I have hit

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.