ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
303 stars 21 forks source link

Sram alloc linker #529

Closed ohmtech-rdi closed 1 year ago

ohmtech-rdi commented 1 year ago

This PR uses the linker to allocate a portion of memory for SramPtr instead of relying on operator new.

It also uniformises the approach we take with SDRAM. Finally it corrects a problem where for real, not the full 512KB section of SRAM was available, as around 2% was already taken. It makes sure that the linker would catch section overflow errors early.

This PR is preparation work for the upcoming semihosting support, for which operator new doesn't seem to be supported for some reason.