snap

<programming>

1. To remove indirection, e.g. by replacing a pointer to a pointer with a pointer to the final target (see chase pointers).

The underlying metaphor may be a rubber band stretched through a number of points; if you release it from the intermediate points, it snaps to a straight line from first to last.

Often a trampoline performs an error check once and then snaps the pointer that invoked it so subsequent calls will bypass the trampoline (and its one-shot error check). In this context one also speaks of "snapping links". For example, in a Lisp implementation, a function interface trampoline might check to make sure that the caller is passing the correct number of arguments; if it is, and if the caller and the callee are both compiled, then snapping the link allows that particular path to use a direct procedure-call instruction with no further overhead.

[Jargon File]

Last updated: 2006-05-27

<operating system>

2. snap dump.

Last updated: 2006-05-27

Nearby terms:

snail mailSNAPsnapsnap dumpSnappySnappy Video Snapshot

Try this search on Wikipedia, Wiktionary, Google, OneLook.



Loading