Re:KolibriOS – operating system written entirely in assembly...
by agumonkey on Wednesday April 15, 2020 @07:52AM
(#22876671)
Have you seen a non asm low level language that could fit hardware better than C ? Not starting a flamewar, just that it seems that you're in a context where you may have reviewed things we might not know of.
[ Parent
| on HN ]
Re:KolibriOS – operating system written entirely in assembly...
by cxr on Wednesday April 15, 2020 @09:37AM
(#22877511)
I hear tell that a lot of the places where modern Fortran shows up are contexts where faster-than-C performance is desirable.
Re:KolibriOS – operating system written entirely in assembly...
by mywittyname on Wednesday April 15, 2020 @11:17AM
(#22878715)
A company I used to work for has spent 30 years trying to migrate FORTRAN code to C. I was not involved in the project, so I don't know the details, but the gist of what I was told is that there are edge cases where FORTRAN stomps C in every performance metric. So you can make decent progress for a while, but you'll eventually hit a major roadblock that halts progress.
Re:KolibriOS – operating system written entirely in assembly...
by _never_k on Wednesday April 15, 2020 @11:20AM
(#22878776)
I think of the BLAS algos as being very Fortran friendly, and the Fortran references never _out_perform the C implementations. (The asm implementations are of course the best.)
Be curious to know what you're thinking of here.
Re:KolibriOS – operating system written entirely in assembly...
by setpatchaddress on Wednesday April 15, 2020 @12:53PM
(#22880018)
I've no personal experience, but people historically point to pointer aliasing as the primary thing that speeds up Fortran code vs C.
Re:KolibriOS – operating system written entirely in assembly...
by agumonkey on Wednesday April 15, 2020 @01:20PM
(#22880412)
No personal experience either but discussing with people invested in high perf C, they said that `restrict` was enough to avoid aliasing issues.
Re:KolibriOS – operating system written entirely in assembly...
by agumonkey on Wednesday April 15, 2020 @09:41AM
(#22877553)
But that's plausibly the compiler doing its magic. Or is there anything in Fortran language/semantics that maps close to vectorized ISAs ?
Re:KolibriOS – operating system written entirely in assembly...
by ajxs on Wednesday April 15, 2020 @09:25PM
(#22885162)
I've done some bare-metal development in Ada. It was originally designed for embedded systems, so it has features that fit this niche very well. It's definitely not as simple as C, it has a much more modern design however.