HIRMA: High-performance Implementation for RISC-V Microcontroller Applications