embench / embench-iot

The main Embench repository
https://www.embench.org/
GNU General Public License v3.0
258 stars 104 forks source link

gcc specific attributes are used in the benchmarks #73

Open kjetilos opened 4 years ago

kjetilos commented 4 years ago

The benchmark code is using gcc specific attributes to mark unused parameters and function to not inline. Using gcc specific attributes will make the benchmark harder to port to non-gcc based compilers. This was seen when building the benchmarks with the IAR compiler. The IAR compiler has a way to enable gcc extensions, however it would be nice if the benchmark could build on any standard c compiler.

jeremybennett commented 4 years ago

Hi Kjetil,

Thanks for this, we'll sweep this up when we fix issue #72.