All of lore.kernel.org
 help / color / mirror / Atom feed
* stack contents at function call
@ 2004-03-01  7:48 Vadiraj C S
  2004-03-01  8:36 ` Frederic Marmond
  2004-03-01  9:40 ` peter willy krause
  0 siblings, 2 replies; 7+ messages in thread
From: Vadiraj C S @ 2004-03-01  7:48 UTC (permalink / raw)
  To: linux-assembly


  Hello Assembly Gurus

   I'm working on Assembly programming under linux from few days, here are some issues

 1.When a function call is made the parameters are pushed on to the stack and a a call
to the function is made. 

 Now the top of the stack is the return address, Please correct me if I'm wrong here,
and the parameters above it is the first parameter sent and so on..

 1. Is this OS dependent, or compiler dependent? 
 2. Does this sequence change when call from C language and call from assembly.

Cos I noticed difference with gcc(GNU compiler) and icc (Intell compiler)


 Help is needed urgent, 

Thanks in advance...



-- 

With Best Regards
 Vadiraj C S    


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-03-05  9:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-01  7:48 stack contents at function call Vadiraj C S
2004-03-01  8:36 ` Frederic Marmond
2004-03-01  8:42   ` Vadiraj C S
2004-03-01  9:42     ` Frederic Marmond
2004-03-05  7:26       ` Frederic Marmond
     [not found]         ` <20040305135011.3ac14610.vadiraj@mail.cyberneme.com>
2004-03-05  9:00           ` Frederic Marmond
2004-03-01  9:40 ` peter willy krause

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.