From cd30d4aea6a476c8f9aba9da11a4684c3202cf5d Mon Sep 17 00:00:00 2001 From: go38coz Date: Sun, 28 Jun 2026 21:14:09 +0200 Subject: [PATCH] Added some comments and -g flag to Makefile --- .gitignore | 3 ++- Implementierung/Makefile | 2 +- Implementierung/main.c | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 51b09c2..4c3e270 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.bmp tricorn *.o -*.d \ No newline at end of file +*.d +*.data \ No newline at end of file diff --git a/Implementierung/Makefile b/Implementierung/Makefile index f74f995..abfaeab 100644 --- a/Implementierung/Makefile +++ b/Implementierung/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -Wall -Wextra -O3 -std=c17 -msse4.1 +CFLAGS = -Wall -Wextra -g -O3 -std=c17 -msse4.1 DEPFLAGS = -MMD -MP LDFLAGS = -lm diff --git a/Implementierung/main.c b/Implementierung/main.c index 46ae555..ccb40b2 100644 --- a/Implementierung/main.c +++ b/Implementierung/main.c @@ -18,7 +18,7 @@ unsigned tests(void) { void benchmarking(void) { // do the benchmarking } -// REMOVE LATER: interesting test command ./tricorn -s -2.0,0.6 -r 0.0010 -n 200 -d 1920,-1080 -o image.bmp -C +// REMOVE LATER: interesting test command ./tricorn -s -2.0,0.6 -r 0.0010 -n 200 -d 1920,1080 -o image.bmp -C const char* help_messsage = "Help Message\n\n" "Usage:\n" " ./tricorn [OPTIONS]\n\n" @@ -206,10 +206,10 @@ int main(int argc, char** argv) } printf("yashar\n"); - if(version_to_use == 0) { + if(version_to_use == 0) { // -V0 uses optimized SIMD-Version tricorn_simd(complexA,width,height,resolution,n,colored,tempArr); } - else { + else if (version_to_use == 1){ // -V1 uses unoptimized version tricorn(complexA,width,height,resolution,n,colored,tempArr); } printf("yashar\n");