[fpc-devel] Successful implementation of inline support forpureassembler routines on x86
pascaldragon at googlemail.com
Mon Mar 18 08:03:29 CET 2019
J. Gareth Moreton <gareth at moreton-family.com> schrieb am So., 17. März
> I do have a slight concern when it comes to intrinsic support, because
> support will be needed to be added for all platforms, (virtually) all
> instructions and tested to see if they expand into the expected
> instruction, along with determining what happens when you string several
> intrinsics together (i.e. passing the result of one such intrinsic into the
> actual parameter of another). I want to say that it will require just as
> much, if not more, maintenance than permitting inlined assembler routines
> under limited circumstances, including adding intrinsics for every
> individual platform's assembly language and showing that it works.
No, intrinsics can be CPU specific. So if you'd use the intrinsic for
AESENC then you'd get a compile time error on non-x86 CPUs. No need to try
to implement them for all platforms.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel