pub struct LinkerScriptGenerator { /* private fields */ }Expand description
Linker script generator
Implementations§
Source§impl LinkerScriptGenerator
impl LinkerScriptGenerator
Sourcepub fn new_stm32() -> Self
pub fn new_stm32() -> Self
Create a new linker script generator with default STM32 memory layout
Sourcepub fn add_region(&mut self, region: MemoryRegion) -> &mut Self
pub fn add_region(&mut self, region: MemoryRegion) -> &mut Self
Add a memory region
Sourcepub fn with_entry_point(self, entry: String) -> Self
pub fn with_entry_point(self, entry: String) -> Self
Set the entry point
Sourcepub fn with_stack_size(self, size: u32) -> Self
pub fn with_stack_size(self, size: u32) -> Self
Set stack size
Sourcepub fn with_heap_size(self, size: u32) -> Self
pub fn with_heap_size(self, size: u32) -> Self
Set heap size
Sourcepub fn with_wasm_memory(self, size: u32) -> Self
pub fn with_wasm_memory(self, size: u32) -> Self
Set WASM linear memory size (adds a .wasm_linear_memory section)
Sourcepub fn with_meld_integration(self) -> Self
pub fn with_meld_integration(self) -> Self
Enable Meld runtime integration (adds import table and extern symbols)
Sourcepub fn generate_to_file(&self, path: &str) -> Result<()>
pub fn generate_to_file(&self, path: &str) -> Result<()>
Generate and write to a file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkerScriptGenerator
impl RefUnwindSafe for LinkerScriptGenerator
impl Send for LinkerScriptGenerator
impl Sync for LinkerScriptGenerator
impl Unpin for LinkerScriptGenerator
impl UnsafeUnpin for LinkerScriptGenerator
impl UnwindSafe for LinkerScriptGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more