We try to subtract the size overhead for libraries, startup files, crt when calculating the size of benchmarks.
Currently this is done as follows:
- Each benchmark is linked against "dummy" libraries that are empty
- The size of the executable elf is calculated by summing up certain sections
Issues with the current approach
- Crt/startup files may still be linked to the final executable
- requires a user to specify dummy files for any user libraries
New approach (planned for embench-iot 2.0)
- Compile a "dummy benchmark", which is empty and gets linked with support files/libraries
- Compute the size of said dummy and subtract it from each benchmark when computing the size.
We try to subtract the size overhead for libraries, startup files, crt when calculating the size of benchmarks.
Currently this is done as follows:
Issues with the current approach
New approach (planned for embench-iot 2.0)