[fpc-devel] Successful implementation of inline support forpure assembler routines on x86

Martok listbox at martoks-place.de
Sun Mar 17 21:47:25 CET 2019


Am 17.03.2019 um 18:57 schrieb Florian Klämpfl:
> How is it better than intrinsics support (similiar to gcc/icc etc.)?
It *exists*?

Remember how long it took to get PopCnt support? How about the rest of the BMI?
TBM? AES-NI? Newer AVX?

Implementation of these would be a lot easier if they could be written in code,
even with native-pascal implementations as drop-ins for platforms that don't
support them (or use other mnemonics). Those would just be normal declarations
(in the RTL or in a package), and not require modifying the compiler for all
platforms.
It would also be easier to maintain, as there wouldn't be the need for new
inlinennodes or entirely different node types.

-- 
Regards,
Martok





More information about the fpc-devel mailing list