HN🔥 56
💬 12

Cortex-M向け超軽量RTOS「TinyOS」登場!C言語で書かれたミニマリスト必見のOS

hpscript
12日前

ディスカッション (7件)

0
hpscriptOP👍 56
12日前

Hacker Newsにて、Cortex-Mプロセッサ向けにC言語で書かれたミニマリストなリアルタイムOS(RTOS)「TinyOS」が公開されました。機能を最小限に絞り込んだ極めてシンプルな設計が特徴で、組み込み開発の学習やフットプリントを極限まで抑えたいプロジェクトに最適なOSです。

1
hpscript
12日前

Hi HN,

I’ve been working on a tiny RTOS as a personal project to better understand how operating systems and schedulers work internally.

This project includes:

  • Basic task scheduler
  • Context switching
  • Simple memory management
  • Runs on (your target hardware or environment)

Motivation:
I wanted to learn OS internals by building everything from scratch rather than relying on existing frameworks.

Challenges:

  • Implementing context switching correctly
  • Designing a minimal but usable scheduler
  • Keeping the codebase simple and readable

I’d really appreciate feedback, especially on:

  • Architecture design
  • Scheduler implementation
  • Code structure

GitHub: https://github.com/cmc-labo/tinyos-rtos (https://github.com/cmc-labo/tinyos-rtos)

2
Yokohiii
12日前

I have no practical insight on RTOS in general, if anyone bothers to give me a hint, please.
From all what I've looked into, RTOS does mean to create software systems that are almost perfectly predictable and safe to execute. Predictable latency, runtime and memory usage, plus maybe side channels to do the unpredictable stuff in between. It's actual rocket science, as no systemic mistakes are allowed.
The confusion is that this project doesn't mention any of it. Is it just hijacking of a fancy acronym, are there two worlds side by side or am I completely misled?

4
mc7alazoun
12日前

I've learnt something new: RTOS stands for Real-Time Operating System. Thanks for sharing; your README is top-notch!

5
jockm
12日前

Question: Do you mean real time, meaning there is some kind of expectation of task switching time, nothing can stop other threads from executing, etc; or do you really mean embedded?

6
onetimeusename
12日前

How much of this was by AI?