Hello Dialog
I downloaded e2studio and successfully built SPS_6.150.8.83 and CODELESS_6.380.20.66 on DA14585
my questions are:
1. Is it possible to reduce the code size? when I try to change the optimization level from None (-O0) to Optimize size (-Oz), the image size still does not change (the default compiler is LLVM)
2. when I try to change the compiler to ARM Compiler 6.16, it fails to compile; can you provide the relevant settings that need to be configured?
Thanks
Robin
1. Use "-Os" for LLVM to optimize for size
2. Compiler / Linker options are not identical between GCC & LLVM, would need to go thru individual build errors to correct. Perhaps someone else has already done this and can comment. Use "-help" on LLVM to dump all build options, similarly for GCC use "--help".
hi JimB
thanks for the reply
1. actually I tried several optimization levels (-O1, -O2, -O3, -Os, -Ofast, -Og, and -Oz), but none of them worked. it might be due to some missing configurations in e2studio?
2. in ARM Compiler 6.16, if run make, the following message will appear:
Cannot run program "make": Launching failed
Error: Program "make" not found in PATH
Should I add a specific directory to the environment path?
Hi CP,
Please find this tutorial for help:
BR,
JH_Renesas
well... I had already go through the starting guide before
but couldn't find the exact answer to the problem
If there is no differences after optimization, we can understand as there is no optimization can do with this SDK. Please referring to the LDS file in the SDK, the data sections are fixed:
So the error is the system cannot run "make", it is not found in your path. If you don't have it installed, install it. If it is already installed, update your PATH environment variable to include the folder where it is installed.
The make utility should be included in the e2studio installation, off-hand I do not recall if it is an optional component. for 2024-04 version, I find it in the folder:
"<InstallationFolder>\eclipse\plugins\com.renesas.ide.exttools.gnumake.win32.x86_64_4.3.0.v20220121-1024\mk"
hello JH
There are some services and modules that can exclude from the app. if you do not need them you can turn that to 1 to close them, like below:
The linker script only handles memory arrangement,, while linker options would control link-time optimization. Compile-time optimization is where most of the options are selected.