amiga.org
     
iconAll times are GMT -6. The time now is 09:05 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » The "Not Quite Amiga but still computer related category" » Alternative Operating Systems » Commodore BASIC for UNIX and Windows

Alternative Operating Systems This forum is dedicated to discussions of alternatives to the Commodore Amiga Platform, such as Linux distributions, FreeBSD, OpenBSD, and others.

Reply
 
Thread Tools Display Modes
Old 10-31-2008, 12:34 PM   #1
blobrana
Energizer Bunny of Babble
Points: 16,995, Level: 83 Points: 16,995, Level: 83 Points: 16,995, Level: 83
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2002
Posts: 4,743
Default Commodore BASIC for UNIX and Windows

Commodore BASIC as a Scripting Language for UNIX and Windows - now Open Source

Read more
blobrana is offline   Reply With Quote
Old 10-31-2008, 01:38 PM   #2
beller
Cult Member
Points: 7,549, Level: 57 Points: 7,549, Level: 57 Points: 7,549, Level: 57
Activity: 1% Activity: 1% Activity: 1%
 
beller's Avatar
 
Join Date: Dec 2004
Posts: 588
Default Re: Commodore BASIC for UNIX and Windows

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.
beller is offline   Reply With Quote
Old 10-31-2008, 01:44 PM   #3
SamuraiCrow
Premium Member
Points: 13,276, Level: 75 Points: 13,276, Level: 75 Points: 13,276, Level: 75
Activity: 2% Activity: 2% Activity: 2%
 
SamuraiCrow's Avatar
 
Join Date: Feb 2002
Location: South Dakota, USA
Posts: 2,018
Blog Entries: 2
Send a message via Yahoo to SamuraiCrow Send a message via Skype™ to SamuraiCrow
Default Re: Commodore BASIC for UNIX and Windows

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.
SamuraiCrow is offline   Reply With Quote
Old 10-31-2008, 02:37 PM   #4
Darrin
Lifetime Member
Points: 19,001, Level: 87 Points: 19,001, Level: 87 Points: 19,001, Level: 87
Activity: 11% Activity: 11% Activity: 11%
 
Darrin's Avatar
 
Join Date: May 2002
Location: Lake Charles, Louisiana
Posts: 4,203
Send a message via AIM to Darrin Send a message via Yahoo to Darrin
Default Re: Commodore BASIC for UNIX and Windows

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.
Darrin is offline   Reply With Quote
Old 10-31-2008, 04:17 PM   #5
beller
Cult Member
Points: 7,549, Level: 57 Points: 7,549, Level: 57 Points: 7,549, Level: 57
Activity: 1% Activity: 1% Activity: 1%
 
beller's Avatar
 
Join Date: Dec 2004
Posts: 588
Default Re: Commodore BASIC for UNIX and Windows

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!
beller is offline   Reply With Quote
Reply

Bookmarks

Tags
basic , commodore , unix , windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tell me about Unix X-ray CH / General 12 04-14-2009 03:10 PM
UNIX for Amiga? Anyone tried it? Amithony Amiga Hardware Issues and discussion 5 12-01-2008 08:22 AM
Mattathias Basic vs. Amos Basic TheMud Amiga Software Issues and Discussion 3 03-20-2007 07:54 AM
Windows spyware problem: automatically closing certain windows KennyR Alternative Operating Systems 19 03-30-2004 04:45 PM
OT: Microsoft's UNIX asian1 Alternative Operating Systems 6 11-08-2003 01:08 PM