www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/23/07:00:35

From: cbroo AT iafrica DOT com (Chris Brooker)
Newsgroups: comp.os.msdos.djgpp
Subject: Are Longs Really Faster?
Date: Tue, 22 Sep 1998 22:46:54 GMT
Organization: UUNET Internet Africa
Lines: 20
Message-ID: <360826d6.2082174@ct-news.iafrica.com>
NNTP-Posting-Host: 196-31-20-150.iafrica.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

I heard somewhere that if you keep you data in longs it actually runs
faster, so if you are worried about speed and new memory usage then
you must keep your data in longs. 

Is this true of:
a) A 16 bit program? (Pacific C)
b) A 32 bit program? (DJGPP (gcc))
c) Does this make a difference?

The same article stated that an
unsigned variable :3;
was about 50% precent slower than a standard int
(4 bytes, 32 bits) and about 200% slower than a long. Please will some
one tell me if this is possible.

Thank you very much.
Marc
 

- Raw text -


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