I want to learn MSX-C, where do I start?

Page 2/12
1 | | 3 | 4 | 5 | 6 | 7

Par PingPong

Prophet (4095)

Portrait de PingPong

19-08-2015, 15:52

tvalenca wrote:

Almost forgot!

There are some M80/L80 versions that you can download online that comes with an "22NICE.COM" (CP/M emulator for MS-DOS or something) that allows you to run CP/M programs on MS-DOS. Maybe you can use it to run any C compiler for CP/M from DOSBOX... It may be harder to set everything up, but your programs will compile lightning fast.

At this point use openmsx accelerated

Par anonymous

incognito ergo sum (116)

Portrait de anonymous

19-08-2015, 15:53

PingPong wrote:

I am not so sure how much is msx c faster con code generated. Sdcc have poor handling about register parameters but speed is not only about register allocations.

The actual speed gains depend on the kind of program you're writing. Parameter passing via registers benefit programs that do lots of function calls. Internal loop optimization benefits code that runs the same parts over and over again.

It could be interesting to do some actual testing by compiling the same program with both compilers and comparing the result.

PingPong wrote:

For me sdcc is far a more better way

That's perfectly fine with me. I personally use MSX-C because I prefer to code on the MSX instead of using a cross-compiler, but I'm fine with everybody using whatever tool they like the most.

Par anonymous

incognito ergo sum (116)

Portrait de anonymous

19-08-2015, 15:55

tvalenca wrote:

Almost forgot!

There are some M80/L80 versions that you can download online that comes with an "22NICE.COM" (CP/M emulator for MS-DOS or something) that allows you to run CP/M programs on MS-DOS. Maybe you can use it to run any C compiler for CP/M from DOSBOX... It may be harder to set everything up, but your programs will compile lightning fast.

I agree with PingPong. If you're not going to run everything on the MSX, then just go one step further and use SDCC. :-)

Par anonymous

incognito ergo sum (116)

Portrait de anonymous

19-08-2015, 15:56

JaviLM wrote:
tvalenca wrote:

Almost forgot!

There are some M80/L80 versions that you can download online that comes with an "22NICE.COM" (CP/M emulator for MS-DOS or something) that allows you to run CP/M programs on MS-DOS. Maybe you can use it to run any C compiler for CP/M from DOSBOX... It may be harder to set everything up, but your programs will compile lightning fast.

I agree with PingPong. If you're not going to run everything on the MSX, then just go one step further and use SDCC. :-)

Though now that I think about it, this would be a great way to quickly assemble big assembler files created on the MSX.

Par madscient

Master (193)

Portrait de madscient

19-08-2015, 18:10

If you want to run CP/M softwares on your PC, you can find CP/M player for Win32:
http://homepage3.nifty.com/takeda-toshiya/cpm/index.html

Most of eminent compilers for CP/M were confirmed to be work well on this environment.

(Though the web page is written in Japanese, Javi-san can translate it :-)

Par anonymous

incognito ergo sum (116)

Portrait de anonymous

19-08-2015, 18:15

madscient wrote:

(Though the web page is written in Japanese, Javi-san can translate it :-)

I'm already translating the MSX-C manuals and the MSX-C入門 books, but sure, I can translate short sections if somebody needs help. :-)

Par ARTRAG

Enlighted (6932)

Portrait de ARTRAG

19-08-2015, 19:06

There is also hitech C v7.8p2, a good cross compiler for z80 with English manual and sources
Not free but available on Internet
The sole problem is that nowadays you need dosbox to run it

Par ericb59

Paragon (1099)

Portrait de ericb59

19-08-2015, 20:00

Good luck AxelStone.
Please keep us informed about your progress, difficulties etc...

Par k0ga

Expert (77)

Portrait de k0ga

19-08-2015, 21:13

You can also try the compiler written by Solid. It is very fast compiling and it generates very good code.

Page 2/12
1 | | 3 | 4 | 5 | 6 | 7