Does anybody tried to compile Pascal to OpenWrt?
Today routers becomes more powerful (64mb disk and 128mb ram) but still not enough to run usual programs in NodeJS, Python or Java.
Golang is working but it's binaries are too bloated. This is not a niche for it.
So I think that Pascal may be a reasonably good choice especially given that it much more mature.
Regular developers can easily write their own soft like home automation or even backend for a website.
I wish to write a small but user friendly Email server with SMTP and POP and Indy is a very cool library to do that
https://github.com/IndySockets/IndyI'm fine if it will be bigger than if written in pure C but instead I'll have a code that is easy to understand.
I have two routers: TP WR1043ND with mips32 CPU and more powerful Turris Omnia with the armhf armv7 CPU.
On my Ubuntu 22.04 I installed Lazarus and configured armv7 target but it said that arm is not supported.
For the mips target I found a wiki page
https://wiki.freepascal.org/Native_MIPS_SystemsBut it looks so difficult so that I'm afraid to touch it.
So I have few questions to you guys:
1. What is your opinion about trying to use Pascal for routers?
2. Is it possible to compile for the arm, armhf and mips without a pain?
3. Is any chances to make binaries smaller? Is it possible to use musl libc that is used by the OpenWrt?
Thank you in advance.