Welcome, Guest. Please login or register.

Author Topic: Commodore BASIC for UNIX and Windows  (Read 2327 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline blobranaTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 4743
    • Show only replies by blobrana
    • http://mysite.wanadoo-members.co.uk/blobrana/home.html
Commodore BASIC for UNIX and Windows
« on: October 31, 2008, 06:34:19 PM »
Commodore BASIC as a Scripting Language for UNIX and Windows - now Open Source

Read more

Offline beller

  • S.A.C.C.
  • Hero Member
  • *
  • Join Date: Dec 2004
  • Posts: 663
    • Show only replies by beller
Re: Commodore BASIC for UNIX and Windows
« Reply #1 on: October 31, 2008, 07:38:10 PM »
I just tried it under OS X and it doesn't appear to work.  Everything I enter, even simple print commands, result in syntax errors.  I copied in their sieve program and it doesn't run either....

While it's cool to watch it startup withe 38911 free message, it sure doesn't beat Frodo as a 64.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Commodore BASIC for UNIX and Windows
« Reply #2 on: October 31, 2008, 07:44:28 PM »
The LLVM backend that exports C is not very well supported.  You'd be better off exporting directly to llvm bitcode and then running it under LLVM's JIT compiler or static compile to PPC/x86.

Keep in mind also that this is just an exercise in porting by software algorithm rather than by hand.  As the LLVM optimizer codes get better, so will the output codes.  Frodo emulates the C64 chipset itself.
 

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: Commodore BASIC for UNIX and Windows
« Reply #3 on: October 31, 2008, 08:37:22 PM »
Quote

beller wrote:
I just tried it under OS X and it doesn't appear to work.  Everything I enter, even simple print commands, result in syntax errors.  I copied in their sieve program and it doesn't run either....

While it's cool to watch it startup withe 38911 free message, it sure doesn't beat Frodo as a 64.


It's case sensitive.  Make sure you write your program in UPPER CASE (commands and variables).

for example, if you type
10 let a=10+1
20 print a
run

Then you'll get a syntax error

Type
RUN

and you'll get a syntax error in 10

edit 10 to read:
10 LET a=10+1

and you'll still get the syntax error in 10

edit 10 to read:
10 LET A=10+1

and you'll gte the syntax error in 20

It does work.  At least it does on my HP laptop running Vista.
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline beller

  • S.A.C.C.
  • Hero Member
  • *
  • Join Date: Dec 2004
  • Posts: 663
    • Show only replies by beller
Re: Commodore BASIC for UNIX and Windows
« Reply #4 on: October 31, 2008, 10:17:54 PM »
Case sensitive...ok, I'll give it another shot.


YES (oops forgot to turn off the caps lock) it works.  I copied and pasted the sieve program and it ran fine.  Now to port over Saucer Attack!