C .. help needed!

Pagina 2/2
1 |

Van mau_rizio

Resident (48)

afbeelding van mau_rizio

10-01-2015, 15:46

Roland007, the answer is there just look all the articles:
http://www.lavandeira.net/2015/01/relearning-msx-8-setting-u...

Van Roland007

Expert (80)

afbeelding van Roland007

10-01-2015, 16:13

Thanks @all!
The compiler now runs. There were two errors:
1 - The LIB directory didn't contain the required files
2 - you need to call the compiler with A:\c hello instead of A:\c hello.c

I can also compare some stuff: Hello World!
V-SOFT Basic Compiler 1342 Bytes
MSX-C 1.2 3457 Bytes

Thanks

Van Roland007

Expert (80)

afbeelding van Roland007

11-01-2015, 18:23

Just got Turbo Pascal 3 working. The Hello world size hitlist

  1. V-Soft Basic Compiler (1342 Bytes)
  2. MSX-C 1.2 (3457 Bytes)
  3. Turbo Pascal (8320 Bytes)

I think ASM can still beat V-Soft Basic compiler

Cheers

Van Grauw

Enlighted (8084)

afbeelding van Grauw

11-01-2015, 18:43

Easily Smile.

BDOS: equ 5
_STROUT: equ 9

    org 100H

    ld de,helloworld
    ld c,_STROUT
    jp BDOS

helloworld: db "Hello World!",13,10,"$"

23 bytes Smile

Van AuroraMSX

Paragon (1901)

afbeelding van AuroraMSX

11-01-2015, 23:06

@Manuel: how the heck did we compile again? I think we had a bash script that ran openmsx with a dir-as-disk containing the HiTech C compiler + libs + our sources? If you still have all that, I think it could help some ppl getting started with (HiTech) C and cross-development...

Van Manuel

Ascended (15457)

afbeelding van Manuel

11-01-2015, 23:28

Of course I have all of that. Don't you have the SVN/CVS server anymore in some old backup? If you do, we even have the commit-history of the code Smile

We had:
- a makefile which can compile, link and test with an emulator
- a bash script that acts like gcc, but uses the CP/M version of Hi-Tech C under the hood
- some libs

Van AuroraMSX

Paragon (1901)

afbeelding van AuroraMSX

12-01-2015, 22:23

Nope. I'm afraid I've lost all of it :-/

Van Manuel

Ascended (15457)

afbeelding van Manuel

12-01-2015, 22:42

How could you be so careless!?

Anyway, I only have the checkout and tools...

Pagina 2/2
1 |