As I know, a static function which called only ONCE will be inlined automatically.
32 to 16 bit optimization
LINUX SNAP BUILD not static
sdcc/src/SDCCopt.c line 3309: if (optimize.lospre && (TARGET_Z80_LIKE || TARGET_HC08_LIKE || TARGET_IS_STM8)) / For mcs51, we get a code size regression with lospre enabled, since the backend can't deal well with the added temporaries / If add back the optimization in this line for mcs51, the bug will be disappeared. I don't know why pdk15 has not that problem. I just don't understand the corresponding optimization procedure. Is there any more documents for the optimizations?
https://sourceforge.net/p/sdcc/bugs/3642/ Anyone help? Appreciated. Chingson
Missed complement operation after lrange optimization
As my experiences, SDCC that formerly designed for 8-bit targets is usually easier to optimize machine codes in 8-bit domain. For example, long foo(long k) { if(k&0x100) bar(); ... return 0; } The "k&0x100" operation in 8-bit domain sometimes can be done in a bit instruction. However, for LLVM/GCC developers .. such kind of optimization is really a headache. But for SDCC developers, such optimization is generally not so hard. Another point of view is that GCC/LLVM usually deals with large code size,...
Dear Sirs, I cannot build sdcpp from sdcpp.vcxproj (under win-10)after gcc patch merged. Any help?