fwsGonzo / libriscv

The fastest RISC-V sandbox
BSD 3-Clause "New" or "Revised" License
522 stars 46 forks source link

FreeBSD build #166

Closed fwsGonzo closed 1 week ago

fwsGonzo commented 1 week ago

Fix some build issues and testing in a FreeBSD VM.

 The *best* time for each kernel (excluding the first iteration)
 will be used to compute the reported bandwidth.
-------------------------------------------------------------
Your clock granularity/precision appears to be 1 microseconds.
Each test below will take on the order of 10433 microseconds.
   (= 10433 clock ticks)
Increase the size of the arrays if this shows that
you are not getting at least 20 clock ticks per test.
-------------------------------------------------------------
WARNING -- The above is only a rough guideline.
For best results, please be sure you know the
precision of your system timer.
-------------------------------------------------------------
Function    Best Rate MB/s  Avg time     Min time     Max time
Copy:           18062.8     0.009008     0.008858     0.009825
Scale:          14907.3     0.012097     0.010733     0.021894
Add:            17429.2     0.013993     0.013770     0.014719
Triad:          10858.7     0.022711     0.022102     0.024903
-------------------------------------------------------------
Solution Validates: avg error less than 1.000000e-13 on all three arrays
-------------------------------------------------------------
>>> Program exited, exit code = 0 (0x0)
Runtime: 1394.979ms   (Use --accurate for instruction counting)
Pages in use: 110 (440 kB virtual memory, total 1768 kB)

libtcc "works" but it's clearly not very well supported. No libtcc is installed in the system, only tcc exists as a package.