Home > front end >  GNU Assembly Language: How to understand the stack pointer in recursive function (factorial calculat
GNU Assembly Language: How to understand the stack pointer in recursive function (factorial calculat

Time:03-30

I try to understand the stack framework by the GAS, and a recursive function assembly case is shown here, as a 32-bit x86 program for Linux:

.section .data

.section .text

.globl _start
.globl factorial

_start:
    pushl $3
    call factorial
    popl            
  • Related