A simple question

2004-03-05 Thread Chungwei Hsiung
Hello.. I am super new to this list, and I have a simple question that I don't know why it does that. I have a simple test program. I compile it, and gdb to disassemble main. I got the following.. 0x80481f8 : push %ebp 0x80481f9 : mov%esp,%ebp 0x80481fb : sub$0x8,%esp 0x8

Re: A simple question

2004-03-06 Thread Chungwei Hsiung
ISAAC GELADO FERNANDEZ wrote: De: Chungwei Hsiung <[EMAIL PROTECTED]> Fecha: Viernes, Marzo 5, 2004 7:43 pm I have a simple test program. I compile it, and gdb to disassemble main. I got the following.. 0x80481f8 : push %ebp 0x80481f9 : mov%esp,%ebp 0x80481fb :

Re: Strange instructions in compiler output

2004-03-06 Thread Chungwei Hsiung
Greg 'groggy' Lehey wrote: On Friday, 5 March 2004 at 13:43:04 -0500, Chungwei Hsiung wrote: Hello.. I am super new to this list, and I have a simple question that I don't know why it does that. I have a simple test program. I compile it, and gdb to disassemble main. I go

Re: Strange instructions in compiler output

2004-03-06 Thread Chungwei Hsiung
Greg 'groggy' Lehey wrote: On Friday, 5 March 2004 at 18:43:11 -0500, Chungwei Hsiung wrote: Greg 'groggy' Lehey wrote: On Friday, 5 March 2004 at 13:43:04 -0500, Chungwei Hsiung wrote: Hello.. I am super new to this list, and I have a simple question that

Re: Strange instructions in compiler output (was: A simple question)

2004-03-06 Thread chungwei Hsiung
ng gcc3.2.2 any help is really appreciated best regards Chungwei On Sat, 6 Mar 2004 10:02:09 +1030 Greg 'groggy' Lehey <[EMAIL PROTECTED]> wrote: > On Friday, 5 March 2004 at 13:43:04 -0500, Chungwei Hsiung wrote: > > Hello.. > > I am super new to this list, and I hav

Re: Strange instructions in compiler output

2004-03-06 Thread chungwei Hsiung
can't see any of those instruction anywhere. Did I miss anything? best regards, Chungwei On Sat, 06 Mar 2004 21:31:51 +0100 [EMAIL PROTECTED] (Dag-Erling Smørgrav) wrote: > Anthony Schneider <[EMAIL PROTECTED]> writes: > > On Sat, Mar 06, 2004 at 02:26:51PM +, chungwei H

Re: Strange instructions in compiler output

2004-03-06 Thread chungwei Hsiung
) wrote: > chungwei Hsiung <[EMAIL PROTECTED]> writes: > > I still don't understand it because we are supposed to pass in the > > op code 0xb to %eax, and arguments to %ebx, %ecx, and %edx before > > calling interupt, but I can't see any of those instruction > &