Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Programming with PLASMA
2018-09-12 10:59
Krill

Registered: Apr 2002
Posts: 2980
Programming with PLASMA

I've recently stumbled upon https://github.com/dschmenk/PLASMA.

This is a "medium level programming language targeting the 8-bit 6502 processor", so something between ASM and C, which can be compiled to rather performant native code from a VM that maps a lot better to 6502, compared to C.

There appears to be a C-64 HAL/arch implementation, so... has anybody tried out PLASMA? :)
2018-09-13 04:14
chatGPZ

Registered: Dec 2001
Posts: 11386
did you? i played around with it a bit and it looks like c64 support has just barely started. there exist a couple c64 related files which will produce error messages when you actually try compiling them =) also unfortunately, that compiler does not compile to native code, it generates bytecode :/
2018-09-13 09:09
Krill

Registered: Apr 2002
Posts: 2980
I have only taken a fleeting glance at it so far and got the impression that it can be compiled to either bytecode or native assembly.

Upon a closer look, the latter seems to be wrong. That makes it somewhat unfeasible (as a higher-level ASM replacement where complex controlling or lots of boilerplate code is required).

Of course that should be rather simple to implement. Maybe a future version will support that.
2018-09-13 20:55
chatGPZ

Registered: Dec 2001
Posts: 11386
yeah it could be done, perhaps. but until then... not something i'd loose sleep about =)
2018-09-19 07:47
White Flame

Registered: Sep 2002
Posts: 136
I looked at the VM implementation code, and I would guess it probably has similar speed characteristics to Forth. Plus, its notion of local frames means that local parameters need to be copied from the stack into the local frame, and vice versa for the return values; while Forth simply keeps all parameters & return values in-place on the stack.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
lotus_skylight
TBH
Marq/Fit^Lieves!Tuor..
csabanw
Guests online: 89
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.059 sec.