delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/07/19:17:04

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 'Register' in C
Date: Wed, 07 Jan 1998 17:29:09 -0500
Organization: Cornell University (http://www.cornell.edu/)
Lines: 23
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <34B401B5.C062FB38@cornell.edu>
References: <01bd1ae1$2f536440$d83d63c3 AT default> <34B29809 DOT 8841108D AT pentek DOT com> <34B2AEDA DOT B0D341BD AT pentek DOT com> <34B2E35C DOT 158B21F AT alcyone DOT com> <34B38BB5 DOT 6090 AT nortel DOT ca>
NNTP-Posting-Host: cu-dialup-0002.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ian Chapman wrote:
>         so after all this c stuff you have put a pointer into a HW 
> register !!! any idea which one?  If you are to use a pointer 
> effectively you must know the m/c details and use a pointer reg not an 
> index or accumulator or link or whatever they have from z80 to cray 2 
> processor.  Regards
> Ian.

it seems like you are under the impression that prefixing a vaiable with
the register keyword is _definitely_ going to result in that variable
being put in a register. this presumption is incorrect. the register
keyword is merely a suggestion to the compiler. it is actually free to
ignore that, and has to ignore it under certain situations (for example,
if the address of the variable is taken.)

-- 
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA

mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/

- Raw text -


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