dhrystone-edit-compiler-flags.patch 839 B

123456789101112131415161718192021
  1. diff --git a/Makefile b/Makefile
  2. index 6fb3e5a..6fe5fd4 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -1,10 +1,13 @@
  6. DHRY-LFLAGS =
  7. -DHRY-CFLAGS := -O3 -DTIME -DNOENUM -Wno-implicit -save-temps
  8. -DHRY-CFLAGS += -fno-builtin-printf -fno-common -falign-functions=4
  9. +# Best effort
  10. +DHRY-CFLAGS := -O2 -DTIME -Wno-implicit -fno-builtin-printf -fno-common -static -mcmodel=medany -ffast-math -fno-common -falign-jumps=8 -falign-loops=8 -falign-functions=8
  11. +
  12. +# Legal
  13. +#DHRY-CFLAGS := -O2 -DTIME -Wno-implicit -fno-builtin-printf -fno-common -static -mcmodel=medany -ffast-math -fno-common -falign-jumps=8 -falign-loops=8 -falign-functions=8 -fno-inline
  14. #Uncomment below for FPGA run, default DHRY_ITERS is 2000 for RTL
  15. -#DHRY-CFLAGS += -DDHRY_ITERS=20000000
  16. +DHRY-CFLAGS += -DDHRY_ITERS=20000000
  17. SRC = dhry_1.c dhry_2.c strcmp.S
  18. HDR = dhry.h