News for hackers. Stuff that matters.
Re:A 100LOC C impl of memset, that is faster than glibc's by com2kid on Friday November 12, 2021 @01:41PM (#29202972)
Programming Microcontrollers was such an interesting and different experience, designing code to be asynchronous in regards to memory operations was a whole 'nother level of arranging code.

Likewise for doing copies from external RAM to internal SRAM, it was slow enough compared to the 1 cycle latency accessing SRAM, and CPU cycles were precious enough, that code copying lots of memory from external memory was designed to stop execution and let other code run and resume once the copy was finished.

We were able to get some serious speed out of the 96mhz CPU because we optimized everything around our memory bus.

There are no comments on this comment yet.