setjmp/longjmp assembly gen

This commit is contained in:
Folkert 2023-07-23 15:05:24 +02:00
parent cdc90f8495
commit f96c78b3a5
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 284 additions and 1 deletions

View file

@ -463,6 +463,10 @@ trait Backend<'a> {
/// Used for generating wrappers for malloc/realloc/free
fn build_wrapped_jmp(&mut self) -> (&'a [u8], u64);
// use for roc_panic
fn build_roc_setjmp(&mut self) -> &'a [u8];
fn build_roc_longjmp(&mut self) -> &'a [u8];
/// build_proc creates a procedure and outputs it to the wrapped object writer.
/// Returns the procedure bytes, its relocations, and the names of the refcounting functions it references.
fn build_proc(