On 11/7/2026 10:37 PM, Peter Flass wrote:
> On 11/7/26 04:45, The Natural Philosopher wrote:
>> On 07/11/2026 04:09, c186282 wrote:
>>> ASM was also *the* way for the older micro-controllers >>>    for a long time. However some of the optimized 'C' >>>    compilers can now rival ASM for speed and size and >>>    you don't have to hand-code bit-banging serial either
>> >> At some point I idly compiled some gcc C to assembler . I spent a pointless half hour trying to work out if I could have done it better. >> >> I couldn't.. >> >> In terms of modern micros I wouldn't even bother unless I couldn't do it in 'C'. >>
> > But then you add all the cruft that GCC drags in and you're back where you started (size-wise, at least). When PCs were new I used a compiler called "Aztec C" that had almost no overhead in excess libraries, start- up code, etc., unless you asked for them.
And nonconsensual AVX code. I've heard some CPUs have a lower maximum Hz when AVX is enabled. And I have never heard of a benchmark that mea- sures the cutoff when doing things the old fashioned way, say REP MOVSB is faster or slower than the AVX method(s), due to this difference. So, why not tell me this cutoff? Are the GCC devs afraid of something? Shouldn't they be proud of their optimizations? Or was I lied to, about modern CPUs stepping down when AVX is in play?
-- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social