---
title: "Discussion on \"What Happens Before and After a Function Call (x86-64)\" | Hashnode"
description: "Discussion on \"What Happens Before and After a Function Call (x86-64)\". We all have seen the long-running Foo Bar Code snippet used to explain function calls. In this article, we will focus on what actually happens in a generic nested function call at the machine level. We will explore the machine instructions generated ..."
url: "https://hashnode.com/posts/function-prologueepilogue/694eb741450fa5704ea232fe"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Happens Before and After a Function Call (x86-64)](https://kartikey5960.hashnode.dev/function-prologueepilogue?utm_source=hashnode&utm_medium=feed)

We all have seen the long-running Foo Bar Code snippet used to explain function calls. In this article, we will focus on what actually happens in a generic nested function call at the machine level. We will explore the machine instructions generated ...

Dec 26, 2025 · 8 min read · kartikey5960.hashnode.dev  
Read the article

-   [#assembly-language](https://hashnode.com/tag/assembly-language)
-   [#operating-system](https://hashnode.com/tag/operating-system)
-   [#c](https://hashnode.com/tag/c)
-   [#linux](https://hashnode.com/tag/linux)
-   [#x8664](https://hashnode.com/tag/x8664)

## Written by

[Kartikey Sharma](https://hashnode.com/@kartikey5960)

@kartikey5960

  
[View profile](https://hashnode.com/@kartikey5960)

Software developer at Cornerstone onDemand

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
