3 ms·
It's not that bad. I usually start small: - Write a program that just returns, or halts; - Write a program that prints something or blinks an LED; - Print nu
by kabdib 10y ago
It's not that bad. I usually start small:
- Write a program that just returns, or halts;
- Write a program that prints something or blinks an LED;
- Print numbers 1-10;
- Handle some input, using function calls.
- Write some data structure (binary tree or hash table). Or maybe get an MMU working, and handle a system trap.
... working your way up to writing a context switch handler, for a coroutine or threading system, of course :-)
... at that point, you're off to the races. Mostly I try to get the toolchain a debugger working reliably in the first step, and everything just builds on that.