This Code should run on every Architecture. The Run Commands down below are for Intel Linux Systems.
g++ -Wall -pedantic -march=native -mfpmath=sse -mavx -O3 -fprofile-arcs -ftest-coverage -pg raytracer.cc statistics.ccfor teaching purposes, an optimized and a non-optimized variant are implemented in some places. to understand the differences, the profile can be executed as follows. to compile the optimized version append -d OPTIMIZED_INTERSECTS to your g++-Command
gcov raytracer.cc
gprof > tayler.gprofnow you can open the Generated Profiling Files in an Editor of your Choice. The get the Generated Teapot use:
./a.out --no_ppm