I am cross compiling node to 32 bit ARM processor. Using node v12.22.12 source code downloaded from https://nodejs.org/download/release/v12.22.12/
Using an ubuntu VM to cross compile. not sure how to reduce node binary for embedded system.
Any help/suggestion will be helpful.
I am using following command to create binary.
- processor: ARM
- compiler: pokymllib32-linux-gnueabi enviornment:
- environment-setup-armv7at2-neon-pokymllib32-linux-gnueabi
- CC_host:"gcc -m32"
- CXX_host: "g++ m32"
./configure --dest-cpu=arm --cross-compiling --with-arm-float-abi=soft --with-arm-fpu=vfpv3 --without-intl --without-dtrace --without-node-snapshot --without-npm --without-inspector --without-etw
make -j2
make install -j2
Still I got the binary size around 725 MB which is way more than pre-build binary (~80 mb).
I need to reduce the file size to less than 80 Mb so that it can be used in embedded system. also need openssl as I need https.