Date: Mon, 14 Aug 2000 07:35:50 +0530 Message-Id: <200008140205.HAA02327@midpec.com> X-Authentication-Warning: midpec.com: tr set sender to tr AT eth DOT net using -f From: Prashant TR To: ratspl AT hotmail DOT com CC: djgpp AT delorie DOT com In-reply-to: <200008140145.HAA01623@midpec.com> (message from Prashant TR on Mon, 14 Aug 2000 07:15:08 +0530) Subject: Re: c++ pointers to asm.... References: <200008140145 DOT HAA01623 AT midpec DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk | Date: Mon, 14 Aug 2000 07:15:08 +0530 | From: Prashant TR | | | From: "Vermin" | | Date: Mon, 14 Aug 2000 00:50:02 +0200 | | DJ-Gateway: from newsgroup comp.os.msdos.djgpp | | | | What does -> & and * look like in asm?? | | | Oops, sorry about that blank message. If you have a struct struct { int b; char c; } *a; and you have an expression a->b somewhere in your program, the compiler generally gets the address of "a" into some register and adds the offset of "b" within the struct. That gives address of a->b. mov ebx, a mov edx, [ebx + 0]; in this case. or something like that. But of course, the assembly code may vary between compilers. Prash -- Prashant TR Web: http://www.midpec.com/