[fpc-devel] Successful implementation of inline support forpure assembler routines on x86
Ryan Joseph
ryan at thealchemistguild.com
Sun Mar 17 03:04:00 CET 2019
> On Mar 16, 2019, at 9:54 PM, Ben Grasset <operator97 at gmail.com> wrote:
>
> Inlining of pure assembler functions would actually be immediately, specifically useful to me! I've been having a go at improving FPC scores on "BenchmarksGames", and was so far successful with Binary Trees simple by throwing a really good threading library at it, however, there are some benchmarks that simply can't be fixed without either proper intrinsics or user-specifiable inlinable ASM methods. I have a working re-implmentation of NBody (that is just a direct rewrite of the Rust implementation) where I've implemented __m128 and __m128d as records with static nostackframe assembler "class functions", however it's just not fast enough to be competitive due to the inability to inline any of the assembler methods.
>
> Something along these lines is absolutely sorely lacking in FPC currently, don't let anyone tell you otherwise.
Sounds exciting progress for FPC. Btw what happened to the development of “pure” function modifier that would make it possible to use functions in compile time expressions? I was pretty excited about what could be done with that also.
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list