From 5adc1eef04a2e853762b437de729bf71a44b8237 Mon Sep 17 00:00:00 2001 From: sofia Date: Mon, 28 Jul 2025 21:24:53 +0300 Subject: [PATCH] Update documentation --- documentation/intrinsics.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/documentation/intrinsics.md b/documentation/intrinsics.md index 56d943c..8cf73fc 100644 --- a/documentation/intrinsics.md +++ b/documentation/intrinsics.md @@ -7,6 +7,16 @@ pre-existing binary-operators, but also some regular functions and associated functions (that every type has by-default). This document lists them all (except for the binary operators, because there are hundreds of those). +### Global Intrinsics + +#### `malloc(size: u64) -> *u8` + +Allocates `size` bytes and returns a pointer of `u8` of length `size`. + +```rust +i32::malloc(40); // Reserves 40 bytes +``` + ### Associated Intrinsics #### `::sizeof() -> u64`