I have 3 projects that I am porting from an old uV4 toolset to newer uV5 toolset. In all cases the new code is 5% to 10% larger and this is causing some issues. As far as I can see, all the settings match. Is there something I am missing here, or is this a known issue with the newer tools?? Some of my projects are VERY tight for space.
Example: Old then New
C51: BROWSE DEBUG OBJECTEXTEND PRINT(.\lst\*.lst) TABS (3)A51: SET (SMALL) DEBUG PRINT(.\lst\*.lst) EPProgram Size: data=54.0 xdata=945 code=6164IDE-Version: µVision V4.72.9.0Tool Version Numbers:Toolchain: PK51 Prof. Developers Kit Version: 9.52.0.0Toolchain Path: C:\Keil\C51\BINC Compiler: C51.Exe V9.52.0.0Assembler: A51.Exe V8.02bLinker/Locator: BL51.Exe V6.22Librarian: LIB51.Exe V4.29Hex Converter: OH51.Exe V2.7.0.0CPU DLL: S8051.DLL V3.91.0.0Dialog DLL: DCYG.DLL V2.72.0.0
C51: OPTIMIZE (8,SPEED) BROWSE DEBUG OBJECTEXTEND PRINT(.\lst\*.lst) TABS (3)A51: SET (SMALL) DEBUG PRINT(.\lst\*.lst) EPProgram Size: data=54.0 xdata=945 code=6405IDE-Version: µVision V5.25.3.0Tool Version Numbers:Toolchain: PK51 Prof. Developers Kit for SiLabs Version: 9.59.0.0Toolchain Path: C:\Keil_v5\C51\BINC Compiler: C51.exe V9.59.0.0Assembler: A51.exe V8.2.7.0Linker/Locator: BL51.exe V6.22.2.0Librarian: LIB51.exe V4.30.1.0Hex Converter: OH51.exe V2.7.0.0CPU DLL: S8051.DLL V3.122.0.0Dialog DLL: DCYG.DLL V2.75.0.0
Grant B said:I wonder if some optimization is getting ignored or something.
That would be the kind of thing I'd be looking at.
Maybe the definitions of the optimisations have changed, or some other default has changed ...