Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

indirection

You are here: irt.org | FOLDOC | indirection

<programming> Manipulating data via its address. Indirection is a powerful and general programming technique. It can be used for example to process data stored in a sequence of consecutive memory locations by maintaining a pointer to the current item and incrementing it to point to the next item.

Indirection is supported at the machine language level by indirect addressing. Many processor and operating system architectures use vectors which are also an instance of indirection, being locations which hold the address of a routine to handle a particular event. The event handler can be changed simply by pointing the vector at a new piece of code.

C includes operators "&" which returns the address of a variable and its inverse "*" which returns the variable at a given address.

(1997-02-06)

Nearby terms: indices « indirect address « indirect addressing « indirection » indirect jump » induction » inductive inference

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb