Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I cannot tell without recreating my project in SwordfishSE BASIC, but using a hacked version of MrDEB's code it may build a HEX file smaller than the free version of XC8 does.Good comparison of Swordfish to C. Any idea on the compiled code sizes?
Here's a rough version that should compile with SwordfishSE... didn't do much other than compile it, so it likely needs some tweaks here and there to run.Perhaps you would like to translate my C project in to a SwordfishSE BASIC project?
FWIW, the port of the C code has the following SLOC:When you look at all of the code, Swordfish BASIC has more than twice the number of lines of code
main.bas 116
lcd.bas 373
keypad.bas 268
tick.bas 25
bitdefs.bas 31
total 813 lines
.....A crystal would be a nice addition but I am not putting in an enclosure BUT!! will include a crystal on the schematic so a crystal could be added at a later date if I put project in an enclosure and use a smaller footprint pic. maybe.....
tumbleweed,Here's a rough version that should compile with SwordfishSE... didn't do much other than compile it, so it likely needs some tweaks here and there to run.
It's worse than that. It adds bloat code to try to sell it's compilers. Try looking at a disassembly and it's fairly obvious. Storing inter operation results in memory for no reason at all.Remember that the XC8 compiler is not doing any code optimization.
I have the HI-TECH PICC18 compiler in PRO mode. It can build the same projects as XC8.Swordfish is still king on 18 f chips I'm going to use the xc8 pay as go thing figure I'd try it out. But just a led blinky on xc8 is way bigger then swordfish on the same chip 18f1220
I'm not sure whats going on here.... XC8 is hitech.. Just rebadged.Thats great I liked HI-TECH better then xc8 it had more to start with. But I think xc8 is good tho just i'm not that good with C I have a full copy of swordfish its
really good with the 18f chips mainly cause it's basic and i'm better at using basic.