Am Dienstag, dem 28.10.2025 um 23:34 +0000 schrieb andy pugh:
> 2) Do away with HAL parameters. Convert them all to full pins.
>     In theory using  parameters saves HAL shared memory as they are
> meant to live in normal memory. In practice
>     nearly every HAL component puts both pins and parameters in HAL
> shared memory, so this advantage is
>    not realised. René has a branch in which this has been done.

Maybe it made sense in the 90ies with single core PCs with 16-ish MB
RAM to limit unwappable memory-locked shared memory. OTOH even then, a
CNC controller that runs into swap was a bad idea.

Nowadays with low-end systems being 4-core 16GB RAM machines, i.e. 1000
times the RAM and on-cpu caches as big as all memory of the 90ies
machines, the need to conserve shared memory is not that pressing any
more.


I tested that branch in July but couldn't yet get it to work on real
hardware (and then ran out of spare time). Implementation details of
HAL pins make this change somewhat tricky. Converted code needs to
allocate memory for the parameters, if such allocation is missing, some
strange behaviour and crashes in the realtime part will result that are
hard to debug. It seems to work in sim, completes the tests IIRC, but
that branch needs testing on real hardware. 


-- 
Robert Schöftner <[email protected]>


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to