Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does compiler optimization affect Windows CE executables?

0
Posted

How does compiler optimization affect Windows CE executables?

0

I came across the following interesting post in the windowsce-dev digest: I’ve been working on a project targeted to the SH3 processor and I noticed that the Release mode EXE for the SH3 was actually larger that the Debug version with symbols! After a little thought I remembered an article in MSJ a year or so ago or so discussing the various optimizations of the x86 compiler in DevStudio. IT said that often the default optimization for speed can be slower that the optimizations for size and that it can get worse for RISC processors. So I compiled for Size instead of speed and there were MAJOR differences in EXE size. X.EXE CPU Debug Opt Size Opt Speed SH3 176K 131K 187K x86 189K 120K 136K Additionally I couldn’t detect any difference in the speed of the code in a relatively GUI intensive app. Just thought I share that it’s actually worth the time spent trying different optimizations, at least on the RISC processors.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.