Re: [fpc-devel] What exactly are the differences in what each of the "-Cp", "-Cf", and "-Op" command line flags enable as far as optimizations?

2020-09-07 Thread J. Gareth Moreton via fpc-devel
The gist of it is that you're specifying the earliest CPU that your program will run on (if it runs on an older CPU, it might crash with SIGILL).  -Cp dictates the instruction set version used overall, while -Cf specifies the family of floating-point instructions that will be used.  Later versi

[fpc-devel] What exactly are the differences in what each of the "-Cp", "-Cf", and "-Op" command line flags enable as far as optimizations?

2020-09-07 Thread Ben Grasset via fpc-devel
For example, a valid FPC command line would be: fpc -O3 -CfAVX2 -CpCOREAVX2 -OpCOREAVX2 file.pas To what extent is each of those flags enabling the generation of AVX2 instructions? Are they all necessary, or does their functionality overlap to some degree? Which is most important? ___