mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#assembler

3 Beiträge3 Beteiligte0 Beiträge heute

I am ALL for #AI and #Claude and #GPT, etc. I do however, in my free time outside of work, school and creating STEM tutorials to help the next generation, believe that spending time in pure #Assembler in a bare-metal #Embedded #microcontroller will help you understand #Computer #Science in a way that can help you drive the future in #technology. I have and will continue to post pure Assembler drivers to help others achieve this utilizing #Arduino and #STM32 products.

I recently took a dive into #C11 #atomics to come up with alternative queue implementations not requiring locking some #mutex.

TBH, I have a hard time understanding the #memory #ordering constraints defined by C11. I mean, I code #assembler on a #mos6502 (for the #c64), so caches, pipelines and all that modern crap is kind of alien rocket science anyways 😆.

But seriously, they try to abstract from what the hardware provides (different kinds of memory barrier instructions, IMHO somewhat easier to understand), so the compiler can pick the appropriate one depending on the target CPU. But wrapping your head around their definition really hurts the brain 🙈.

Yesterday, I found a source telling me that #amd64 (or #x86 in general?) always has strong ordering for reads, so no matter which oderding constraint you put in your atomic_load and friends, the compiler will generate the same code and it will work. Oh boy, how should I ever verify my code works on e.g. aarch64 without owning such hardware?

A couple of days ago a new release 6.14 of KDE Frameworks came out and part of it is the syntax highlighting engine, used not only by KDE applications like Kate and KDevelop; but also by some others like Qt Creator.

I'm happy to report that this version also brings support for RISC-V instructions/registers/… in GNU Assembler, that I contributed:
🔗 invent.kde.org/frameworks/synt

#RISCV #RISC_V #assembler #assembly #programming #Kate #editor #KDevelop #QtCreator #Qt6 #IDE #KDE #KDEFrameworks @kde

I will begin to do more smaller tutorials on #Embedded #Rust particularly with #Embassy as someone who's first language was #6502 #Assembler and working for decades with #C; despite its complexity, I think this exploration is worth doing as we have trillions of IoT devices and if we have a path forward to even in the least bit better secure them, might that be of some value?