openhwgroup / core-v-mcu

This is the CORE-V MCU project, hosting CORE-V's embedded-class cores.
https://docs.openhwgroup.org/projects/core-v-mcu
Other
165 stars 50 forks source link

Improve Verilator generated by make model-lib #292

Closed jeremybennett closed 1 year ago

jeremybennett commented 1 year ago
The library version of the Verilator model is likely to be included
in shared object libraries, so is compiled with -fPIC. The typical
applications will be focussed on performance rather than debugging
the Verilator model, so it is also compiled with -O3.

* README.md: Extend documentation for the model-lib target.
* core-v-mcu.core: Build verilator model for model-lib target with -O3 and -fPIC.

Signed-off-by: Jeremy Bennett jeremy.bennett@embecosm.com