Jump to content
IGNORED

FastBasic CHR$?


Gury

Recommended Posts

Hello thanks for the information.

with which compiler can you compile the fastbasic under win10 please?

can you please give a brief briefing on compiling?



the "pause 0" in fastbasic is not a VBI routine to call a new procedur but just for image syncronization.


Thank you.

greeting

Edited by funkheld
Link to comment
Share on other sites

Hello thanks for the information.

with which compiler can you compile the fastbasic under win10 please?

can you please give a brief briefing on compiling?

 

I like the IDE and use it for my developments... Sorry!

 

the "pause 0" in fastbasic is not a VBI routine to call a new procedur but just for image syncronization.

 

Thank you.

greeting

You have many threads in this forum with similar questions. Please try to keep all related questions in one thread in order to follow them and understand your requests by the context. I guess that your comment about "pause 0" should be in this other thread.

  • Like 3
Link to comment
Share on other sites

Hi!

 

Hello thanks for the information.

with which compiler can you compile the fastbasic under win10 please?

can you please give a brief briefing on compiling?

I develop from Linux, and compile using mingw64. I will try to document all steps to generate a working cross-compiler.

 

To compile in windows 10, I think the "easiest" is to install msys2 from http://www.msys2.org/ :

 

- First, install MSYS2 following the instructions on the web-page. Remember to do the "pacman -Syu" and then, after closing and reopening the window, do the "pacman -Su" command.

- Install "mingw-w64-i686-gcc", "make", "zip", "unzip" and "git" packages. Remember that packages with "i668" in the name compile to 32bit windows. This is done typing " pacman -S make mingw-w64-i686-gcc zip unzip git "

 

Also, you need to install CC65, follow the instructions at https://cc65.github.io/getting-started.htmland install to C:\CC65

 

Now, open a "Mingw x32" window, and use that to download and compile Fastbasic:

 

- First, add CC65 to the path: PATH=$PATH:/c/cc65/bin

- Download the code from github: git clone https://github.com/dmsc/fastbasic.git

- Enter the fastbasic source folder: cd fastbasic

- Compile a "debug" build: make EXT=.exe

 

This will put the compilers into bin/fastbasic-fp.exe and bin/fastbasic-int.exe

 

If you want to generate the "release" tarball, use a different compile line:

 

- make EXT=.exe SHEXT=.bat CXXFLAGS="-DNDEBUG -Os -Wall -static-libstdc++ -static-libgcc -Wl,--gc-sections" build/fastbasic.zip

 

That will generate a build/fastbasic.zip file with the compiler, scripts, libraries and documentation, all also in the folder "compiler/".

 

Just tested the steps in a fresh windows VM, seems to work.

Edited by dmsc
  • Like 1
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...