Same data model as greeter_plugin, but a standalone executable: libamxrt parses the command line, loads backends/ODL and registers the model; symbols in an executable cannot be resolved by import, so they must be registered in the ftab. With main.c walkthrough and app/plugin comparison.
cpu-info is not the smallest example, but it covers read-only/volatile, CPU[] instances, and read/list/describe actions. File-by-file notes plus a compile/test on the AMX base environment with measured output.
Six fewer C files than cpu-info; still covers objects, instances, events and persistence. ODL, entry point, and a compile/test on the AMX base environment method (ubusd + amxrt verification).
The smallest Ambiorix example: one C file, no ODL. It waits for an object to appear on the ubus/bus, then exits. Use it to understand amxrt startup order, the event loop and bus waiting before moving to ODL and data models.
There are a dozen official examples. Sorted by size, one article per example: wait_for (1 C) → amx-scheduler (2 C + 2 ODL) → cpu-info (8 C + 3 ODL) → greeter_plugin → greeter_app → localagent_threshold.
AMXRT does three things: load ODL, load a bus backend, run the event loop. It does not depend on a specific board, so it runs on a PC. Learn the model — objects/transactions/actions/bus — not the flags, not the examples, and do not mistake prplOS for AMX itself.