News for hackers. Stuff that matters.
Re:Space Invaders by nomel on Wednesday March 12, 2025 @02:10PM (#43346061)
It's required whenever your clock cycle time is near your timing requirements. Not so much a problem with multi GHz microcontrollers, but still needed for cheap ones.

Manually add up all cycles for each instruction in each branch, then pad the shorter with noop to make them the same. Repeat for each code path, and cry when you need to make a change.

Re:Space Invaders by JohnFen on Wednesday March 12, 2025 @02:57PM (#43346525)
Yep, it's a practice I still engage in with several of my microcontroller-based projects.
Re:Space Invaders by gibibit on Thursday March 13, 2025 @11:39AM (#43354411)
I know it's probably an intentional exaggeration... but are there really any microcontrollers over 1 GHz core clock? Fast I know of is ST at around 600 MHz.
Re:Space Invaders by nomel on Thursday March 13, 2025 @04:04PM (#43356765)
ARM Cortex based ones exceed 1GHz [1]. Although, maybe the definition of microcontroller is a bit fuzzy these days.

[1] https://www.mouser.com/c/semiconductors/integrated-circuits-...

Re:Space Invaders by gibibit on Wednesday March 19, 2025 @01:53PM (#43415239)
ARM Cortex-A is an application processor, not a microcontroller. With an MMU (can run a full OS like Linux) and without internal memory.

Cortex-M is a microcontroller, without MMU (can't run Linux etc.), and typically has internal RAM and flash.

Only the NXP i.MXRT1170 reaches 1 GHz CPU clock, and this is not multi-GHz as the prior comment declared.