OO Language

Pagina 3/5
1 | 2 | | 4 | 5

Van WORP3

Paladin (864)

afbeelding van WORP3

23-11-2011, 19:30

Isn't there anyone out their that can adjust the GCC to run on a Z80 system ?

Van PingPong

Prophet (4096)

afbeelding van PingPong

23-11-2011, 19:42

I think some people are wondering a bit.
the reason that make sdcc a real project is that that mainstream compilers like gcc can only teoretically targeted to 8bit cpu.
Effectively, time ago some people tryed the hard work ( targeting gcc to 8 bit cpu ) but they realized too hard.
so SDCC was born!

Van dhau

Paragon (1570)

afbeelding van dhau

23-11-2011, 19:52

For all the folks that think that built-in OO syntax in language is the only way:

en.wikipedia.org/wiki/Gobject - nice clean OO implementation that does away with both C++ and Objective-C

Van WORP3

Paladin (864)

afbeelding van WORP3

23-11-2011, 20:19

That is kind of strange because Atmel seems to have converter the GCC to their AVR Studios. It seems to work great and the AVR is also a 8 bits cpu.
It's probably just a matter of time, as it will take a lot of effort to make the conversion !

Van slowerisbetter

Master (194)

afbeelding van slowerisbetter

23-11-2011, 20:43

These days people would be writing LLVM backends instead of GCC backends as LLVM is much better structured for creating backends & frontends. https://github.com/stev47/llvm-z80-testing was an attempt (no idea if it does anything).

Van bore

Master (161)

afbeelding van bore

24-11-2011, 00:40

That is kind of strange because Atmel seems to have converter the GCC to their AVR Studios.
Just a small detail; Atmel didn't do the AVR-version of GCC. What they did is that they added support for the WinAVR-project in AVR Studio. If I recall correctly you will have to download and install WinAVR separatly.
Last time I checked WinAVR's support for C++ was very limited. I think you got the class inheritance but not much else. (Apart from the bad stuff that makes it easy to make the source code unreadable.)

Van WORP3

Paladin (864)

afbeelding van WORP3

24-11-2011, 09:29

If I recall correctly you will have to download and install WinAVR separatly.
Last time I checked WinAVR's support for C++ was very limited. I think you got the class inheritance but not much else. (Apart from the bad stuff that makes it easy to make the source code unreadable.)

All of the software (compiler/debugger,etc) is included within the AVR studios 5, only one download and you are good to go Wink
I could be possible that the used GCC is original from the WINAVR package, don't know.
I never used OO in a micro. My sprite engine that i wrote for ACE in space level 3 has some OO idea's in it Wink

Van enribar

Paragon (1206)

afbeelding van enribar

20-06-2012, 16:26

So... an OO programming language does not exist for the MSX...
But Modula-2 for the MSX provides coroutine constructs!
http://en.wikipedia.org/wiki/Coroutine
Better than nothing!
This is what introduction manual claims:

"Z80 Turbo Modula-2 was created by Borland International, the creators of
Turbo Pascal. It is an in-depth and professional implementation of
Modula-2 for Z80-compatible computers running a CP/M-80 compatible disk
operating system."
... "Turbo Modula-2 includes support for coroutines (multiprocessing)
and interrupt handlers."

Speed of executables is better than those of Turbo Pascal:

"Computes number of decimal digits in 10,000 factorial.
Exact answer is 35660
See COMPUTERWORLD. 3/20/87 for more info.

MSX 6MHz, Turbo Pascal: 200 secs
MSX 6MHz, Turbo Modula-2: 99 secs
IBM 10MHz, GW-BASIC: 149 secs"

WOW!!! It would be interesting to port TP graphics libraries and do some testing!
I think it is a very simple and powerfull language for those who want to start programming something serious for the MSX.

--- adding some resources for those who are interested:
http://www.z80.eu/mod2-compiler.html
http://www.retrotechnology.com/herbs_stuff/modula.html
http://www.modulaware.com/mdlt52.htm

Van badsector

Rookie (27)

afbeelding van badsector

10-10-2017, 21:30

Does anybody know if an Object Oriented framework (Assembler or C) exists by now for MSX? (this topic is a few year old now and I'm wondering if maybe things changed by now)

I'm currently developing an Object Oriented framework in Assembler for MSX (and Yes, it's going well) and if somebody else already created something like this, I would like to compare it to see if I could use some of the ideas.

Van assembler

Champion (414)

afbeelding van assembler

10-10-2017, 22:19

Hi!

GnG is made in assembler with "MSLOOPX" (MS-Something Like Object Oriented Programming-X).
Each object has its own properties and two pointers to its routines (MOV, called at each frame, and HIT, called each time that object collides with another).

Once the engine is set up, the development is very clear (at least for me Tongue )

Pagina 3/5
1 | 2 | | 4 | 5