From: "Andrew D. Jones" Newsgroups: comp.os.msdos.djgpp Subject: Re: HEEEEEEEEEEELP Message-ID: References: X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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