<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>I read this in the D5 help:</FONT></DIV>
<DIV><FONT face=Arial color=#800080 size=2>The generic integer types are Integer
and Cardinal; use these whenever possible, since they result in the best
performance for the underlying CPU and operating system.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If what you say is true then this appears to be
wrong.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I presume packed records are a different
story?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Dennis Chuah" <</FONT><A
href="mailto:dennis_cs_chuah@hotmail.com"><FONT face=Arial
size=2>dennis_cs_chuah@hotmail.com</FONT></A><FONT face=Arial
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "NZ Borland Developers Group - Delphi List"
<</FONT><A href="mailto:delphi@ns3.123.co.nz"><FONT face=Arial
size=2>delphi@ns3.123.co.nz</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Wednesday, September 15, 2004 11:42
AM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [DUG] ShortInt,
SmallInt</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>> <BR>> In Pentium CPU's all 8-, 16- or 32-bit operations are
performed in one CPU<BR>> cycle, so there is no performance penalty.
What you might be thinking of<BR>> are MOV operations involving non-aligned
16- and 32-bit data. In this case,<BR>> the performance penalty is one
CPU read or write cycle - which can vary in<BR>> time depending on whether
the data is cached or not.</FONT></BODY></HTML>