delorie.com/archives/browse.cgi | search |
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 <tr AT eth DOT net> |
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: | <zvFl5.2159$By6 DOT 31387 AT news1 DOT online DOT no> <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 |
| Date: Mon, 14 Aug 2000 07:15:08 +0530 | From: Prashant TR <tr AT eth DOT net> | | | From: "Vermin" <ratspl AT hotmail DOT com> | | 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 <tr AT midpec DOT com> Web: http://www.midpec.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |