0xMiden / 0xMiden/compiler

Obtain the `heap_base` from Rust

Aberta
#610 0 comentários 0 reações 0 responsáveis Ver no GitHub
codegen linker
Linguagem predominante
Rust
Estrelas
115
Forks
84
Merge médio
1d 8h
PRs com merge (30d)
15

Descrição

Discussed in https://github.com/0xMiden/compiler/pull/604#issuecomment-3089661935

The `wasm_ld` exports `__heap_base` that holds the address for the start of the heap.

https://surma.dev/things/c-to-webassembly/

https://stackoverflow.com/questions/69994454/accessing-heap-base-when-building-a-wasm-binary-with-rust

Here are some allocators that use `__heap_base` for blockchains that use Wasm - https://github.com/search?q=static+__heap_base%3A+language%3ARust&type=code&l=Rust

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.