Mail Archives: djgpp/1998/01/06/18:00:47
Whoops! I made a mistake. corrections follow:
> char buf[100];
> register *char bufptr = buf;
>
This should read:
char buf[100];
register bufptr = buf; /*(I think . . .) */
> Now bufptr is a register variable of type "pointer to char", which is probably
> what you're after. ALSO--remember that "register" is a suggestion, not a
> requirement. SOME compilers will ignore your suggestion, and giving the
> compiler impossible combinations of register variables will give "unpredictable
> results." Also, be aware that declaring variables "register" does not always
> boost performance.
>
> Have you tried compileing w/ full optimizations yet? Its likely to give better
> results than you or I could come up with.
>
> --
> Charles Krug, Jr.
--
Charles Krug, Jr.
Application Engineer
Pentek Corp
1 Park Way
Upper Saddle River, NJ 07458
- Raw text -