From ff8867d45b56de6cacc71479f328a9583a3b2e5a Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Wed, 17 Jan 2024 13:37:31 -0500 Subject: [PATCH] Use __a.c and generate __a.bmir for gen-bench2. --- GNUmakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 535312fb66..1333b53646 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -734,10 +734,10 @@ gen-bench2: $(BUILD_DIR)/c2m # Ignore M1 MacOs as it needs another procedure to echo +++++ Compiling and generating all code for c2m: +++++;\ for i in 0 1 2 3;do \ echo === Optimization level $$i:;\ - echo 'int main () {return 0;}' > a.c;\ + echo 'int main () {return 0;}' > __a.c;\ time $(BUILD_DIR)/c2m -O$$i -Dx86_64 -I$(SRC_DIR) $(SRC_DIR)/mir-gen.c $(SRC_DIR)/c2mir/c2mir.c\ - $(SRC_DIR)/c2mir/c2mir-driver.c $(SRC_DIR)/mir.c -el -i < a.c;\ - rm -f a.c a.bmir;\ + $(SRC_DIR)/c2mir/c2mir-driver.c $(SRC_DIR)/mir.c -el -i -o __a.bmir < __a.c;\ + rm -f __a.c __a.bmir;\ done;\ fi