I've used this compiler for my small project.
You can use the official build for Debian buster on Ubuntu 20.04 LTS with the following commands, building it yourself should be better, though:
sudo bash -c 'echo >> /etc/apt/sources.list'
sudo bash -c 'echo "deb [trusted=yes] https://max.kellermann.name/debian cegcc_buster-default main" >> /etc/apt/sources.list'
sudo apt update
sudo apt install gcc-arm-mingw32ce
And I found the following issues:
- You must strip (-s) when you static link the C/C++ runtime library. It gets 10MB+ if you forget to do that.
- Some macros have wrong definitions. e.g. WS_MINIMIZEBOX shows the maximize button. This is because this build of CeGCC uses header files for Windows PC, not for Windows CE. I don't know why Microsoft changed the static numbers for Windows CE, though.