github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/targets/riscv-qemu.ld (about)

     1  
     2  /* Memory map:
     3   * https://github.com/qemu/qemu/blob/master/hw/riscv/virt.c
     4   * RAM and flash are set to 1MB each. That should be enough for the foreseeable
     5   * future. QEMU does not seem to limit the flash/RAM size and in fact doesn't
     6   * seem to differentiate between it.
     7   */
     8  MEMORY
     9  {
    10      FLASH_TEXT (rw) : ORIGIN = 0x80000000, LENGTH = 0x100000
    11      RAM (xrw)       : ORIGIN = 0x80100000, LENGTH = 0x100000
    12  }
    13  
    14  _stack_size = 2K;
    15  
    16  INCLUDE "targets/riscv.ld"