www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/20/15:34:41

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <001f01c18995$b8043360$1400a8c0@alex>
From: "Alex Oleynikov" <alex AT compuweigh DOT com>
To: <djgpp AT delorie DOT com>
Subject: Memory accessing performance
Date: Thu, 20 Dec 2001 15:34:27 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Reply-To: djgpp AT delorie DOT com

Hi everybody!

I've got a question related to memory accessing performance when using DPMI.
Currently I am developing an application which talks to PLCs via Modbus
protocol and I need to create a map of Modbus registers in my program.
Every register is two bytes of data and there are quite a few of them (up to
50000). First thing that comes to the mind is to use dynamic arrays of short
integers, but wouldn't it be much slower compared to 32-bit integers? (since
the compiler generates a 32-bit code which is more efficient accessing
32-bit memory locations, right?). Those registers must be updated about
every 250ms, so I'd rather sacrifice size to gain performance.

Any feedback is welcome.

Regards,
Alex


- Raw text -


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