3 ms·
> perhaps a C compiler only needs to represent that function as an intrinsic instead, to give itself a chance to later replace it either with the function call
by vmchale 2y ago
> perhaps a C compiler only needs to represent that function as an intrinsic instead, to give itself a chance to later replace it either with the function call or some SIMD instruction
I gesture to this in the blog post:
> In C, one writes a function, and it is exported in an object file. To appreciate why this is special, consider sum :: Num a => [a] -> a in Haskell. This function exists only in the context of GHC.
> ...
> perhaps there are more fluent methods for compilation (and better data structures for export à la object files).
- ta3401 2y agoI now realize that I somewhat rephrased what was said in the blog. How strange!