www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/30/11:36:32.1

From: "Andrew D. Jones" <guln AT home DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HEEEEEEEEEEELP
Message-ID: <a03s4t8p0nebu3q0tch90l75fvb1kb4qqu@4ax.com>
References: <F241MwqYahYkihF8NQD0000489b AT hotmail DOT com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Lines: 17
Date: Sat, 30 Dec 2000 16:25:36 GMT
NNTP-Posting-Host: 24.43.195.250
X-Complaints-To: abuse AT home DOT net
X-Trace: news3.rdc1.on.home.com 978193536 24.43.195.250 (Sat, 30 Dec 2000 08:25:36 PST)
NNTP-Posting-Date: Sat, 30 Dec 2000 08:25:36 PST
Organization: Excite AT Home - The Leader in Broadband http://home.com/faster
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I have some problems with djgpp... I'm making a DOS Game Boy emulator and i 
>need a tip: how to use the "register" keyword with djgpp... When I put:
>register char a;
>the compiler tells me:
>"register name not specified"
>Could you help me please?

Strange.  I don't know the answer to that one, but you should know
that as far as optimizations go, DJGPP is pretty good.  The register
keyword is a hold-over from older compilers that isn't (usually)
necessary in standard development any more.  The compiler is (again,
usually) smart enough to know what values should be kept in registers
for speedier access.  Using the register keyword will sometimes
interfere with the optimizer, at other times it may just be ignored.

-- 
Andrew D. Jones

- Raw text -


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