G++ guru's please comment - Re: FW: pthread_create problem in Cygwin 1.1.8-2]

Christopher Faylor cgf@redhat.com
Tue Apr 10 17:33:00 GMT 2001


On Wed, Apr 11, 2001 at 07:40:48AM +1000, Robert Collins wrote:
>----- Original Message -----
>From: "Christopher Faylor" <cgf@redhat.com>
>To: <cygwin@cygwin.com>
>Sent: Wednesday, April 11, 2001 1:14 AM
>Subject: Re: G++ guru's please comment - Re: FW: pthread_create problem
>in Cygwin 1.1.8-2]
>
>>Here is a standard prologue generated by gcc when compiling for an
>>Intel target.
>>
>>         pushl   %ebp
>>         movl    %esp, %ebp
>>
>>This moves the contents of the esp (stack) register into the ebp (frame
>>pointer) register.  The "movement" is left to right in gas syntax.
>>
>
>try this: bring up that prologue in gdb, then enter set disas intel
>
>and regenerate the disas.  I suspect you're looking at att syntax
>(which IIRC is the gas default).

Um.  Yes, of course I'm looking at the default syntax.  Had you changed
the syntax in your example?  If so, then the simple answer to the
"I'm puzzled" is "I used 'set disas intel'".

Regardless, I was looking at the actual assembly output from gcc.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list