**IMPORTANT** Optimizations in v2.2.3.8

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

**IMPORTANT** Optimizations in v2.2.3.8

Post by Jerry Messina » Tue Nov 15, 2022 1:26 pm

There are a number of new optimizations as part of SF v2.2.3.8, including:
- faster integer multiply
- optimized bit test code generation
- string library

Most of these should result in faster operation, but may result in slightly larger code size in some cases.

There are settings in the SwordfishICC.ini file or '#options' that can be used to control most of these...
if you notice any issues please post a message here and I'll try and address it.

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: **IMPORTANT** Optimizations in v2.2.3.8

Post by Jerry Messina » Fri Dec 02, 2022 1:55 pm

It appears there's an error in the latest update (SF 2.2.3.8/ICC 1.2.0.9) that can cause issues with improper register bank selection.
You should replace the SwordfishICC.ini file (found in the swordfish \Bin folder) with the contents of the attached zip file.

This should disable some of the optimizations until I get a chance to look into this a bit more.
Attachments
SwordfishICC ini file update for v1209.zip
(2.74 KiB) Downloaded 58 times

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: **IMPORTANT** Optimizations in v2.2.3.8

Post by Jerry Messina » Sat Mar 04, 2023 2:27 pm

This issue has been addressed in the latest ICC v1.2.1.0 included in SF UPDATE 3_1_2023
It rolls back the 'bit test' optimizations to match previous ICC v1.2.0.8

tecnomouse
Posts: 1
Joined: Mon Mar 16, 2009 10:11 am

Re: **IMPORTANT** Optimizations in v2.2.3.8

Post by tecnomouse » Tue Mar 28, 2023 6:03 am

hI Jerry.

I have problems with this version all the projects I compile cause me problems especially in string management.
They are 125kbyte complex projects.
Even with the ICC.ini file it doesn't work.
Is there any way to go back to the previous version or even 2 previous versions?
The ICC version v1.2.1.0 is not present in the standard update with swordfish-si.
With the version doesn't solve my problems Swordfish ICC V1.2.1.0

Thank you.

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: **IMPORTANT** Optimizations in v2.2.3.8

Post by Jerry Messina » Tue Mar 28, 2023 12:11 pm

check your PM.

The ICC v1.2.1.0 update is a separate download for v2.2.3.8
See https://www.sfcompiler.co.uk/wiki/wiki- ... _2023b.zip

... which is now superseded by the 2.2.4.0 online update, which includes ICC v1.2.1.0
After performing the update to 2.2.4.0 you should not need the ICC zip file update or to change the SwordfishICC.ini file settings.

Please post here if you have any issues with the new versions.

Post Reply