Programs

A Solana program is an account that contains executable sBPF bytecode and has its executable flag set to true. Programs are stateless. All mutable state lives in separate data accounts passed via instructions.

Diagram of a program account, its 4 components and its loader program.Diagram of a program account, its 4 components and its loader program.

Key facts

  • Compiled to sBPF: Programs are compiled to Solana Bytecode Format (sBPF) via LLVM and stored in executable accounts.
  • Stateless: All mutable state lives in separate data accounts, not in the program account.
  • Upgradeable: Programs deployed with loader-v3 (BPF Loader Upgradeable) can be upgraded when an upgrade authority is set; revoking that authority makes the program immutable.

Limits

LimitValueSource
Default heap size32 KiBHEAP_LENGTH
Max heap size (adjustable)256 KiBMAX_HEAP_FRAME_BYTES
Stack frame size4,096 bytesSTACK_FRAME_SIZE
Max sBPF call depth64MAX_CALL_DEPTH
Max instruction stack depth (top-level + CPIs)5 (9 with SIMD-0268)MAX_INSTRUCTION_STACK_DEPTH, MAX_INSTRUCTION_STACK_DEPTH_SIMD_0268
Heap cost8 CUs per 32 KiB pageDEFAULT_HEAP_COST
Max cached programs512MAX_LOADED_ENTRY_COUNT
Deployment visibility delay1 slotDELAY_VISIBILITY_SLOT_OFFSET

Is this page helpful?

सामग्री तालिका

पृष्ठ संपादित करें

द्वारा प्रबंधित

© 2026 सोलाना फाउंडेशन। सर्वाधिकार सुरक्षित।
जुड़े रहें