Lazarus
Free Pascal => General => Topic started by: ncs-sniper on May 26, 2017, 09:23:21 pm
-
Hi all!
Simple question - is there a listing (or a way to obtain one) of all supported instructions or whole extensions in the integrated assembler?
I know I can call FPC with command-line parameter -i, but that does not list the individual extensions (eg. BMI1, BMI2, FMA, AESNI, ...), only instruction sets - I have no idea what they encompass.
For now, my only option is to simply try instruction I want to use and see whether FPC will take it or not, which is kind of meh.
-
There you go:
https://svn.freepascal.org/svn/fpc/tags/release_3_0_2/compiler/x86/x86ins.dat
-
Exactly what I was looking for, many thanks!
But I have another question - why are some extensions (namely BMI1 and 2; I was interested in those two, dunno about others) only partially supported/implemented? Are there reasons other than "nobody did it yet and it is not important or requested"?
-
Mostly the assembler is extended by contributions. Sometimes the people contributors already add sets that have (some) documentation but are not available yet.
-
Ok, thanks for the answer!