Jump to content
IGNORED

Turbo basic xl and compilers question


eegad

Recommended Posts

Always liked turbo basic xl. My only wishlist feature would be a way to compile a program to a standalone binary. Unfortunately it can only compile to a .ctb file which then gets run with runtime.com. What I was wondering is if there might be a way to sort of "append" a ctb file to the runtime.com, thus creating a standalone in a roundabout way. I mean if runtime is loaded into memory, and the ctb gets loaded into memory and then executed, why can't you possibly just load it as one chunk (depending of course on where it gets loaded....I assume you couldn't do this if the runtime resides in the ram under the os). Any thoughts?

 

Also, are there any other compilers other than abc and mmg? (would like convert an old basic program into an executable, but it does use floating point, and it does have variable goto's, so abc/mmg are out)

Link to comment
Share on other sites

I can provide some alternative for you question #2. Apart from compilers, there are also Atari BASIC "embedders" that will simply encapsulate an Atari BASIC program in a binary load file. There are no speed enhancements, of course.

http://atariage.com/forums/topic/215992-basic-to-xex-compiler-that-keeps-original-basic-speed/?hl=%2Bbcom&do=findComment&comment=2817639

  • Like 1
Link to comment
Share on other sites

Always liked turbo basic xl. My only wishlist feature would be a way to compile a program to a standalone binary. Unfortunately it can only compile to a .ctb file which then gets run with runtime.com.

While others have answered - wow, I did not know that there was a Turbobasic linker - the result file is rather lengthy, and the compiler never reached the quality of the TurboBasic interpreter itself. It had numerous bugs, unfortunately.

 

What I would recommend is the ABC "compiler" for Atari Basic (not Turbo Basic), which comes with a rather slim runtime (less than 4K). The important part is maybe that it has found some commercial use, so it is a proven working compiler.

 

The drawback is that it only supports integer math, and it does not really "compile" anything. It rather transforms the program into pseudo-code which is then interpreted by the runtime. Yet, the result is quite fast.

Link to comment
Share on other sites

I'll give ABC another look. I'm pretty sure the program in question does some non-integer math, but I'll give it a shot and see what happens.

 

As to the reason why I want it as a single compiled file is that I'd like to put it on one of my MaxFlash carts and be able to use it on a real 800xl without the need for using (and waiting for) a disk drive. The program runs too slow in standard Atari Basic....it runs just fine in Turbo Basic.....but Turbo Basic won't load with MaxFlash Carts (I assume they both use the same portion of ram under the os...if anyone knows of a way to get TurboBasic running on a MaxFlash cart, PLEASE let me know - that would solve my problem quite nicely).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...