For windows you can also code pure native, like using native controls (by implementing proper code on your own)
You can search for some examples that uses native WinAPI, than final executables are from 15kb (with Delphi, I did not tried with FPC yet) up to an unknown size depending on what you insert in code.
If that is possible for Linux or other platforms = idk.