Commodore Basic Compilers | Speed up Your Basic Code! | C64

Ғылым және технология

Basic compilers convert basic code to binary executable code.
In this video I covered two basic compilers, Basic-Boss and Blitz!, and You will see how easy it is to use them.
❤ BASIC-BOSS Compiler, 1988, www.c64-wiki.com/wiki/BASIC-BOSS
BASIC-BOSS Compiler code: csdb.dk/release/?id=103888 (thi is where demo.prg is)
BASIC-BOSS Manual: cloud.cbm8bit.com/juga64/Basic...
❤ BLITZ! compiler, 1985, commodore.software/downloads/...
BLITZ! Compiler Manual: archive.org/details/Blitz_BAS...
☕ If You like this video you can buy me a coffee: ko-fi.com/josipretrobits ☕
❤ Ships on waves in Basic: • Commodore 64 Waves wit...
❤ Ships on waves in C: • Commodore 64 Basic Wav...
Puzzle Code used in video:
10 rem@ \fastfor:\datatype byte
20 rem@ \byte x,y
30 rem **se
40 print chr$(147):p=0
100 for y=1 to 25
110 for x=1 to 40
115 x2 = x+10
120 a = (6-x2): b=(yor21)
123 f = a-int(a/b)*b
125 f2 =(f/30)*5
220 poke 1024+p,160
230 poke 55296+p,f2
240 p=p+1
250 next x
260 next y
300 goto 300
Index:
0:00 - Intro
1:03 - What are Basic Compilers
5:02 - How to use Blitz! Compiler
8:15 - How to use Basic-Boss Compiler
9:55 - Testing new compiled files
12:42 - Explaining Compilers Directives
15:03 - Compiling some more basic code, Ships on Waves
19:19 - Basic-Boss Demo, amazing speed demonstration!
24:29 - Thank You and Good Bye!
CHECK OUT MY OTHER COMMODORE/ACORN VIDEOS:
🕹️ Commodore 64 Programming: • Commodore 64 Programming
🕹️ Commodore 64 Hardware Videos: • Commodore 64
🕹️ Commodore 64 Plus/4 Videos: • Commodore Plus/4
🕹️ Acorn Electron Videos: • Acorn Electron
🕹️ Commodore 64 Games: • Retro Games and Demos

Пікірлер: 36

  • @RazzFazz-Race
    @RazzFazz-Race6 ай бұрын

    I remember in the 80ths in the german magazine „64er“ was once a Tiny Basic Compiler. It has a reduced instruction set . But it was almost as fast as assembler.

  • @JosipRetroBits

    @JosipRetroBits

    6 ай бұрын

    That would be nice to try out, thank You :) Cheers!

  • @Commodoreretro-programming
    @Commodoreretro-programming5 ай бұрын

    Very interesting video Josip. There are so many compilers out there. It's hard to choose the right one. There's an interesting alternative called Laser BASIC by OASIS. It extends the BASIC with new commands like Simons BASIC but it's faster and it's compatible with a compiler also made by OASIS. I've not tried the combo but it may worth a try for all C64 BASIC programmers.

  • @JosipRetroBits

    @JosipRetroBits

    4 ай бұрын

    Oh thanks for the info. I haven't heard of Laser Basic, I have to try it out :) Sorry for the late reply :) Cheers!

  • @pjcnet
    @pjcnet Жыл бұрын

    In the mid 1980s at around 15 years old I got my parents to buy me a C64 compiler for Christmas and I lost sleep being so excited about getting it on Christmas Eve, I was a super nerd lol.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    On Christmas Eve, that is such a lovely memory to have :) Ha ha, I hope that You are still super nerd :)

  • @Vector_Ze
    @Vector_Ze Жыл бұрын

    I enjoyed your video. After taking an unplanned break from C64 for more than thirty years, it's sad how much I've forgotten. Got my THEC64 a while back, and I've been refreshing my memory. I had the Blitz compiler way back then, but never used the BOSS. TheC64 is great and I'm going to dip my feet into compiling again.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Glad you enjoyed it! Yes, You can have a really fun time with The64. Welcome to the world of Commodore 64 :)

  • @Vector_Ze

    @Vector_Ze

    Жыл бұрын

    @@JosipRetroBits I guess you meant 'welcom BACK to the world of Commodore' , heh. Thanks.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Oh Yes, my mistake :)

  • @Centar1964
    @Centar1964 Жыл бұрын

    For the ultimate in compiled BASIC for the 64 nothing beats VISION BASIC, on the fly compiling right after you type run. Before this the best I could find that was BASIC like was ABACUS FORTRAN for the c64. Both can create stand alone programs that will run on a stock 64.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    As far as I know VISION BASIC requires an extra 256K of RAM, so that is a completely different beast :) But I agree that is more powerful, Yes.

  • @Centar1964

    @Centar1964

    Жыл бұрын

    @@JosipRetroBits The compiler requires extra ram but it makes programs that do not require extra ram.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    @@Centar1964 Ok, so extra ram is needed just for compiling process. Thanks.

  • @BustaHymen
    @BustaHymen Жыл бұрын

    As much I enjoy this video.... there is now a new BASIC that is also an assembler, and is self compiling. To me it's one of the coolest things ever (and no, i have no affiliation with the sole (!) authour of this, I live on the other side of the world). I have bought it, and it's amazing. Don't want to disclose his details in public though, since he seem to think it's to much work selling it (he has a day job). But Google is your friend, and there are videos he himself put up on KZread of it's capacity. Requires an REU though, if you're not using an emulator.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Yes, I read somewhere about this but I do not like the REU requirement. But again there are new OS's for C64 and C language support and other languages there are lots of new software for Commodore 64 to test out, so it is exciting time to have Commodore 64 :) Sorry for my late replay :)

  • @BustaHymen

    @BustaHymen

    Жыл бұрын

    @@endwigast5212 Correct :)

  • @TheSulross

    @TheSulross

    Жыл бұрын

    Sonic the Hedgehog port to the C64 showed what a game changer can be As a rule of thumb, development environments are very often more resource intensive than the target runtime requirement of the software being created

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    @@TheSulross Yes, that is in most cases true. Besides Sonic which requires REU, I was amazed by "C64anabalt" game, a fluid and fast game without REU.

  • @66mhzbrain
    @66mhzbrain2 жыл бұрын

    Cool video! Optimising for the compilers looks like fun, presumably for more complex basic programs it could become quite a big job to get the best performance out of the compiled version?

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Definitely, It would take a lot of time to optimize the code and of course, it takes then a lot of time to compile it. Also, it is not easy to debug the final code, especially when the compiler is done with no errors but the program is not behaving as it should....so these compilers are not working in all cases, there are some quirks :) But still, they are amazing peace of software!

  • @commocore
    @commocore2 жыл бұрын

    At 16:10 interesting that you have scratched the file and saved instead of SAVE”@0:WAVES”,8. Have you ever had an issue with this command? I read it might corrupt your disk but I never had a problem with it.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Yes, I wanted to show how to delete files from a disk :) But, during some years, I did have a couple of issues with "save @0", but I can't be sure was it the command or disk drive issues...so...

  • @commocore

    @commocore

    Жыл бұрын

    @@JosipRetroBits I always used “S0:” to scratch the files, but I am not sure what zero stands for anymore :D. It works well without for this one as well as for overwriting command. Interesting!

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    @@commocoreI believe that 0 is for basic programs, 1 - is for other binary files.. perhaps... :) But @0 as a Save and Replace should work just fine in most cases...Yes.

  • @commocore

    @commocore

    Жыл бұрын

    @@JosipRetroBits Ah, cool. Great video by the way, the BOSS balls example destroyed my brain :).

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Me too, it is mind blowing :)

  • @0mongo0
    @0mongo0 Жыл бұрын

    No need to load ,8,1 if it loads at $0801 as any BASIC program does.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Yes, that is true in that case, but it is safer to let the software decide where to load itself :)

  • @maxmuster7003
    @maxmuster7003 Жыл бұрын

    I think written in assembler it execute faster.

  • @JosipRetroBits

    @JosipRetroBits

    Жыл бұрын

    Yes, for sure. There is nothing that can be compared with assembly but to get these speeds compiling basic code is fascinating :) Thank You for watching!

Келесі