| ??? 02/14/01 07:59 Read: times |
#9282 - use of multiply in large data arrays |
My problem is the following.
I am making a program which handles a lot of data, this data is stored in arrays of 15,16 bytes (struct) per member. When I want to acces a member inside this array I have to multiply the number of the arraymember with the membersize and add the baseaddres to this result. This process consumes a lot of time and also makes use of the mul instruction. Luckily I use the DS80C390 of dallas and this baby has a hardwareaccelerator for mathematical instructions. Despite this accelerator this still takes to much time in my eyes. Can someone tell me if ther is a more efficient way of accesing arraymembers. I have to tell that my program is in C, but assembler directives are also welcome. With kind regards, Patrick Klok |



