# Memory and Resource
This example separates WIPI memory IDs from resolved data pointers and tests a small packaged resource. It demonstrates `MC_knlAlloc`, `MC_knlCalloc`, `MC_GETDPTR`, `MC_knlFree`, memory statistics, resource lookup, and resource copying.
## Source
- {download}`Application source <../../../examples/memory-resource/main.c>`
- {download}`Example guide <../../../examples/memory-resource/README.md>`
## Build and runtime axes
| API level | ABI profile | Install profile | Package |
|---|---|---|---|
| `1.2.1` | `lgt-raptor` | `aram-wie-raptor` | Run in ARAM · Download compiled ZIP
SHA-256: 1b638624780be13e20f88f67410ee0ebe897a67e13a97805aecf223ffdfe958c · 4387 bytes
Built from: 0b26f71bac30 |
| `1.2.1` | `lgt-raptor` | `aram-raptor` | Run in ARAM · Download compiled ZIP
SHA-256: 2091700fbfbb937911b3903387eb70ff71537e6076145bcc6ddfa48cecff5433 · 4336 bytes
Built from: 0b26f71bac30 |
| `1.2.1` | `ktf-samsung` | `aram-ktf` | Run in ARAM · Download compiled ZIP
SHA-256: 96add7633bc5311b53945df62e3e1062bf9914063f27e60da14c0773632c293c · 2727 bytes
Built from: 0b26f71bac30 |
> Compiled downloads are checked into the SDK with their exact build
> revision, inspected against the selected package profile, and published
> with SHA-256
> hashes. Compatibility is limited to the milestones recorded for each
> exact install profile.
## APIs demonstrated
- [`MC_grpDrawRect`](../api/1.2.1/symbols/MC_grpDrawRect.md)
- [`MC_grpDrawString`](../api/1.2.1/symbols/MC_grpDrawString.md)
- [`MC_grpFillRect`](../api/1.2.1/symbols/MC_grpFillRect.md)
- [`MC_grpFlushLcd`](../api/1.2.1/symbols/MC_grpFlushLcd.md)
- [`MC_grpGetDisplayInfo`](../api/1.2.1/symbols/MC_grpGetDisplayInfo.md)
- [`MC_grpGetFont`](../api/1.2.1/symbols/MC_grpGetFont.md)
- [`MC_grpGetPixelFromRGB`](../api/1.2.1/symbols/MC_grpGetPixelFromRGB.md)
- [`MC_grpGetScreenFrameBuffer`](../api/1.2.1/symbols/MC_grpGetScreenFrameBuffer.md)
- [`MC_grpInitContext`](../api/1.2.1/symbols/MC_grpInitContext.md)
- [`MC_knlAlloc`](../api/1.2.1/symbols/MC_knlAlloc.md)
- [`MC_knlCalloc`](../api/1.2.1/symbols/MC_knlCalloc.md)
- [`MC_knlExit`](../api/1.2.1/symbols/MC_knlExit.md)
- [`MC_knlFree`](../api/1.2.1/symbols/MC_knlFree.md)
- [`MC_knlGetFreeMemory`](../api/1.2.1/symbols/MC_knlGetFreeMemory.md)
- [`MC_knlGetResource`](../api/1.2.1/symbols/MC_knlGetResource.md)
- [`MC_knlGetResourceID`](../api/1.2.1/symbols/MC_knlGetResourceID.md)
- [`MC_knlGetTotalMemory`](../api/1.2.1/symbols/MC_knlGetTotalMemory.md)
> The application source remains profile-independent. Emulator orchestration and
> expected observations live in manifests and the owning test repository.