<sc6502>
Starting to feel a bit fuzzy, had covid+flu jabs yesterday.
<Xogium>
ouch
<sc6502>
Next on the navit hit list is remove the 3 different library versions and half a dozen API versions from the code.
<Xogium>
oh yeah
<sc6502>
It's just be "the latest" for the moment.
<Xogium>
wonder why there are so many hehe
<sc6502>
I guess nobody bothered to prune out the dead wood for fear of breaking some random ancient install.
<Xogium>
yeah, probably… and even now this code we work with is super old
<sc6502>
Good-ish news on the memory front. My revised analysis of the memory footprint based on all the malloc/free calls shows a peak memory usage of about 1.5Mb.
<Xogium>
hmm
<sc6502>
But bear in mind that there is a lot of stuff we don't need which still allocates memory,
<Xogium>
the navit process on Peter's speedsaver shows that it uses 6 mb of ram without a fix and 7 nearly 8 with a fix
<Xogium>
ah yeah, those
<sc6502>
The process memory includes all the behind the scenes memory also used by the other libs linked with Speedsaver.
<Xogium>
oh, that makes more sense
<Xogium>
so like do you think we could reuse this on a mcu or… is it too linux specific and if we go the mcu route we need to make a different software ?
<sc6502>
Most of the s/w should work as is, all it really depends on is CPU+memory.
<Xogium>
oh really ? So no crazy deps like glibc ?
<sc6502>
The interesting glue will be reading files, writing to display, getting GPS
<sc6502>
yeah, glibc will be gone!
<Xogium>
niceness
<Xogium>
so this could be pure bare metal
<Xogium>
not depending on glibc should reduce the footprint even more since glibc is rather, heavy handed
<sc6502>
Yeah, although glibc is running the code in an event loop, it's not using threads to do it. So it can all be run as a simple loop just waiting for each GPS fix, which seems to be in the 5 to 10 Hz range.
<Xogium>
so we could use stuff like musl or uclibc to build
<Xogium>
or… that
<sc6502>
Yeah, one of those micro libc would probably be useful, and we'd only pay for what we use.
<Xogium>
you did work with mcu before right ? I seem to recall you saying you did for some stuff but I'm not so sure now
<sc6502>
Yeah I've worked on a pretty wide range of "embedded" processors, from lowly 8-bit PICs to various multi-core monsters.
<Xogium>
nice
<Xogium>
like stm32 or imx/freescale ?
<Xogium>
I've only just started on those but it looks awesome
<sc6502>
The stuff I've worked on recently are Qualcomm Snapdragon and Samsung Exynos chipsets - though usually confined to one specific application domain within the whole SoC.