Discussion Forum

Using far or huge pointer, which is faster?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Brad Holeman
Posted
10-Mar-2003 15:24 GMT
Toolset
C166
New! Using far or huge pointer, which is faster?
I have an array defined in RAM. The array is defined 40 bytes. I do interpolation on the array by passing the address of the array as a huge pointer to int to the interpolation function.

For the C167CS, which pointer is faster, the far pointer or the huge pointer?
Read-Only
Author
Scott deWolski
Posted
10-Mar-2003 16:57 GMT
Toolset
C166
New! RE: Using far or huge pointer, which is faster?
Brad,
See the code comparisons in the C166 Compiler manual (section 3 page 80 in mine).
Far and Huge use EXTP and EXTS op-codes respectively for extended addressing and have the same timing. It is the Xhuge model that really slows things down.
Best
Scott

Next Thread | Thread List | Previous Thread Start a Thread | Settings