New version (2.2.3.0) and Win 10

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
RKP
Registered User
Registered User
Posts: 82
Joined: Mon Oct 22, 2007 3:14 pm
Location: Maryland

New version (2.2.3.0) and Win 10

Post by RKP » Sat Nov 02, 2019 2:12 am

Hi Gents,

Is anyone having compiling issues with the new compiler version and windows 10 home?

I just got a new laptop with Win 10 and installed the new version of Swordfish.
I am trying to compile a sample program but it does not produce a hex file.
It does produce two files a .cof and .idf but no hex file.

Here are two screen grabs from the "C:\Users\rkpue\Documents\Swordfish\Samples\Blink" during the compilation process.
The first one is during the compilation process and the second one is when it is over.
Has anyone else experienced this?

Thanks,
RKP
Attachments
Capture.PNG
Capture.PNG (13.63 KiB) Viewed 3868 times
Capture1.PNG
Capture1.PNG (10.86 KiB) Viewed 3868 times

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: New version (2.2.3.0) and Win 10

Post by David Barker » Sat Nov 02, 2019 10:08 am

I have just installed the latest version of the compiler on Windows 10 Home and it generates a *.hex file as expected.
  • Are you seeing the "compiling..." dialog box?
  • Are you seeing any assembler windows?
  • Are you seeing a dialog that says "optimising..."?
  • After compilation, do you see "Success : 99 program bytes used, 25 variable bytes used" on the status bar?
  • Are you running any anti virus software that might see a *.hex file as a threat?
Attachments
win10.png
win10.png (29.9 KiB) Viewed 3863 times

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

Re: New version (2.2.3.0) and Win 10

Post by Jerry Messina » Sat Nov 02, 2019 1:28 pm

I don't have win10 here, but I tried it yesterday with the same results... it worked.

Here are some additional troubleshooting steps that might be helpful(???)...

In the Swordfish\Bin folder there should be a file named 'SwordfishICC.ini'. Open that file with notepad and around line 50 you'll see

Code: Select all

; displays a messagebox window with all the ICC paths and filenames before running mpasm
;	0=silent, no messagebox (default)
;	1=show messagebox
;show_dir=1
Uncomment the ';show_dir' line to read 'show_dir=1' (remove the semicolon at the start of the line). Save the file.

Now, when you compile you should be shown a message box similar to this:
Clipboard01.png
Clipboard01.png (18.96 KiB) Viewed 3860 times

Before you select 'OK', open an explorer window to your user temp folder. It should be under 'C:\Users\<USERNAME>\AppData\Local\Temp'
(you may have to enable 'Show hidden files, folders, and drives' or whatever it's now called in win10).
Clipboard02.png
Clipboard02.png (41.85 KiB) Viewed 3860 times
You should see the file 'ASL.SBA' (that's the main .ASM file that it's working with)

Now, click 'OK' and you'll go through the second phase and you'll see the message box window again.
Before you select 'OK' you should see the following in the temp folder...
Clipboard03.png
Clipboard03.png (47.28 KiB) Viewed 3860 times
When all done those files should get copied and renamed to your project folder, and you should see the .asm and .hex files (plus .cof and .lst if you've enabled them in the IDE 'View | Compile and Program Options...' settings)

Don't forget to change ';show_dir' back in SwordfishICC.ini or you'll get that annoying nag box all the time.

RKP
Registered User
Registered User
Posts: 82
Joined: Mon Oct 22, 2007 3:14 pm
Location: Maryland

Re: New version (2.2.3.0) and Win 10

Post by RKP » Sat Nov 02, 2019 5:46 pm

Thanks David and Jerry, you gentlemen pointed me in the right direction.

For all David questions the answer is yes.

The compiler was doing it's thing but no hex and success results.

The issue was the antivirus software Bitdefender.
It for some reason decide to block files from going into the documents folder but obvious not all files.
Removing the document folder from the list, the compiler creates a hex file and success results.

Thanks again gentlemen!

Post Reply