Hubbry Logo
search button
Sign in
Bounded pointer
Bounded pointer
Comunity Hub
History
arrow-down
starMore
arrow-down
bob

Bob

Have a question related to this hub?

bob

Alice

Got something to say related to this hub?
Share it here.

#general is a chat channel to discuss anything related to the hub.
Hubbry Logo
search button
Sign in
Bounded pointer
Community hub for the Wikipedia article
logoWikipedian hub
Welcome to the community hub built on top of the Bounded pointer Wikipedia article. Here, you can discuss, collect, and organize anything related to Bounded pointer. The purpose of the hub is to connect p...
Add your contribution
Bounded pointer

In computer science, a bounded pointer is a pointer that is augmented with additional information that enable the storage bounds within which it may point to be deduced.[1] This additional information sometimes takes the form of two pointers holding the upper and lower addresses of the storage occupied by the object to which the bounded pointer points.

Use of bound information makes it possible for a compiler to generate code that performs bounds checking, i.e. that tests if a pointer's value lies within the bounds prior to dereferencing the pointer or modifying the value of the pointer. If the bounds are violated some kind of exception may be raised. This is especially useful for data constructs such as arrays in C.

See also

[edit]

References

[edit]
  1. ^ Reese, Richard (2013). Understanding and Using C Pointers: Core Techniques for Memory Management. O'Reilly Media, Inc. p. 167. ISBN 9781449344566.