delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/03/10:12:25

From: clc5q AT cobra DOT cs DOT Virginia DOT EDU (Clark L. Coleman)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: inline assembly and c struct
Date: 3 Feb 2001 14:11:45 GMT
Organization: University of Virginia
Lines: 17
Message-ID: <95h3j1$frf$1@murdoch.acc.Virginia.EDU>
References: <957ghs$kl$1 AT news DOT onet DOT pl> <959619$f3k$1 AT murdoch DOT acc DOT Virginia DOT EDU> <95f5mk$cug$1 AT news DOT onet DOT pl>
NNTP-Posting-Host: cobra.cs.virginia.edu
X-Trace: murdoch.acc.Virginia.EDU 981209505 16239 128.143.137.16 (3 Feb 2001 14:11:45 GMT)
X-Complaints-To: abuse AT virginia DOT edu
NNTP-Posting-Date: 3 Feb 2001 14:11:45 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <95f5mk$cug$1 AT news DOT onet DOT pl>, clusty <clusty AT poland DOT com> wrote:
>In article news:959619$f3k$1 AT murdoch DOT acc DOT Virginia DOT EDU , "Clark L. Coleman"
>clc5q AT cobra DOT cs DOT Virginia DOT EDU>... wrote:
>> In article <957ghs$kl$1 AT news DOT onet DOT pl>, aiur9 <aiur9 AT kki DOT net DOT pl> wrote:
>> >How can I get a structure member offset from inline assembly
>>
>> Who says it has to be assembly? Why not just take the address of
>> fields in C, using the "&" operator?
>
>no
>I want compiler to print y_offset in my piece of inline assembly code.

Could you answer my question: Why does it have to be inline assembly
when it could be done in C code?



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019