Last updated 12 month ago

Thunk

Thunk

Definition and meaning of Thunk

A thunk, in a widespread Computing Context, is a piece of low-level sySTEM generated Code that implements the inFormation of a Software Program system. It is one of the following:

  1. A piece of code appearing a delayed computation
  2. A Characteristic of a Digital Function desk Implementation
  3. A mapPing of system facts from one machine precise form to another for compatibility troubles

What Does Thunk Mean?

The ideas of thunk eMerged in early 1961. It is a computation returning a value of the argument while performed. A name via want replaces a thunk with the aid of its go back price after the primary execution. Languages with Late Binding have research in Run Time, based on computations done through thunk.

Nullary features (features which do not take arguments) in practical Programming are referred to as thunk. Thunks Simulate lazy evaLuation and postpone the characteristic argument computation. These features similarly pressure thunks to get real values. Thunk might also seem naturally in the implementation of consistent capabilities in excessive order programming.

Compilers of item orientated languages together with C generate functions termed thunks. They optimize virtual function calls in the Presence of virtual or Multiple Inheritances.

Some times of relocaTable code use neighborhood thunks to name library capabilities. Dynamic Library name in the code jumps to thunks in a leap desk, which is further replaced through capabilities loading the applicable library or movements to a suitable point in an already loaded library. So a thunk in this place Computes or returns previously computed and Cached values. Thunks are utilized in Software program based digital Memory systems to carry out a mapping from digital to bodily cope with. Creating a 16-Bit virtual DOS system inner a 32-Bit OS is known as thunking and guarantees a backward compatibility with programs the usage of vintage gadget calls.

Flat thunks use thunks translating calls from 32-bit code to 16-bit code. An interMediate code translates memory cope with among systems. Microsoft has a thunking Layer of itself known as Win32s, which allow 32-bit Windows software to run on 16-bit Windows. The 64-bit Windows Model additionally affords a thunking layer, WoW64, which lets in the usage of 32-bit Windows applications.

Let's improve Thunk term definition knowledge

If you have a better way to define the term "Thunk" or any additional information that could enhance this page, please share your thoughts with us.
We're always looking to improve and update our content. Your insights could help us provide a more accurate and comprehensive understanding of Thunk.
Whether it's definition, Functional context or any other relevant details, your contribution would be greatly appreciated.
Thank you for helping us make this page better!

Frequently asked questions:

Share Thunk article on social networks

Your Score to Thunk definition

Score: 5 out of 5 (1 voters)

Be the first to comment on the Thunk definition article

9848- V1
Terms & Conditions | Privacy Policy

MobileWhy.comĀ© 2024 All rights reserved