www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/16/19:36:30

Date: Tue, 16 Sep 1997 12:17:28 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: djgpp AT delorie DOT com
Subject: Asm Question
Message-Id: <Pine.LNX.3.91.970916120927.905A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0

Greetings,

In what precise way does %ebp "characterise" a stack frame? Does it point
to the first address on the current stack frame? If so shouldn't each
nested procedure call redefine %ebp to set up a new stack frame for its
use? 

I have looked at some .s files produced by gcc and all they do is push and 
pop %ebp at each procedure call. Where is it initialised if at all? I 
suspect that this is done in crt0.s but would be grateful for the range 
of line numbers in the relevant file where this is accomplished 


Many thanks in advance

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019