Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Sms C compiler

Reply to topic
Author Message
  • Joined: 29 Jun 1999
  • Posts: 335
  • Location: Brazil
Reply with quote
Sms C compiler
Post Posted: Tue Jun 29, 1999 6:24 pm
Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
it looks very powerfull! But a sms one would be really more nicer :)
  View user's profile Send private message Visit poster's website
  • Joined: 24 Jun 1999
  • Posts: 1732
  • Location: Paris, France
Reply with quote
Post Posted: Tue Jun 29, 1999 6:35 pm
Quote
> Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> it looks very powerfull! But a sms one would be really more nicer :)

Well, a port from the one for Gameboy should be technically faisable.
  View user's profile Send private message Visit poster's website
  • Joined: 29 Jun 1999
  • Posts: 335
  • Location: Brazil
Reply with quote
Post Posted: Tue Jun 29, 1999 10:28 pm
Quote
> > Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> > it looks very powerfull! But a sms one would be really more nicer :)

> Well, a port from the one for Gameboy should be technically faisable.

This could boost the sms development scene!
  View user's profile Send private message Visit poster's website
  • Joined: 24 Jun 1999
  • Posts: 1732
  • Location: Paris, France
Reply with quote
Post Posted: Tue Jun 29, 1999 11:09 pm
Quote
> > > Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> > > it looks very powerfull! But a sms one would be really more nicer :)

> > Well, a port from the one for Gameboy should be technically faisable.

> This could boost the sms development scene!

I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit
  View user's profile Send private message Visit poster's website
  • Joined: 29 Jun 1999
  • Posts: 335
  • Location: Brazil
Reply with quote
Post Posted: Tue Jun 29, 1999 11:14 pm
Quote
> > > > Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> > > > it looks very powerfull! But a sms one would be really more nicer :)

> > > Well, a port from the one for Gameboy should be technically faisable.

> > This could boost the sms development scene!

> I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
> port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit

Hum...let's see!
  View user's profile Send private message Visit poster's website
ziggy880
  • Guest
Reply with quote
Post Posted: Wed Jun 30, 1999 12:44 am
Quote
> > > > > Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> > > > > it looks very powerfull! But a sms one would be really more nicer :)

> > > > Well, a port from the one for Gameboy should be technically faisable.

> > > This could boost the sms development scene!

> > I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
> > port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit

> Hum...let's see!

Actually the source is available www.gbdev.org/gbdk and charles doty mentioned the possibility of
him porting it for this reason
 
  • Joined: 29 Jun 1999
  • Posts: 66
  • Location: Houston TX
Reply with quote
Post Posted: Wed Jun 30, 1999 3:29 am
Quote
> Well, a port from the one for Gameboy should be technically faisable.

I've developed a Game Gear Assembler/Linker from the Gameboy versions. There was some discussion about porting the stuff over.



  View user's profile Send private message Visit poster's website
Lin Ke-Fong
  • Guest
Reply with quote
Post Posted: Wed Jun 30, 1999 2:45 pm
[SMS/GG C compiler]
Quote
> > > > > Well, a port from the one for Gameboy should be technically faisable.
> > > > This could boost the sms development scene!
> > > I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
> > > port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit
> > Hum...let's see!
> Actually the source is available www.gbdev.org/gbdk and charles doty mentioned the possibility of
> him porting it for this reason

Well, any C compiler for Z80 will do I guess since both SMS and GG are Z80 based, the problem with
the gameboy C compiler is that the gb uses a slightly modified Z80, anyway the compiler may not
generate those special opcodes.
 
ziggy880
  • Guest
Reply with quote
Post Posted: Wed Jun 30, 1999 4:54 pm
Quote
> [SMS/GG C compiler]
> > > > > > Well, a port from the one for Gameboy should be technically faisable.
> > > > > This could boost the sms development scene!
> > > > I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
> > > > port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit
> > > Hum...let's see!
> > Actually the source is available www.gbdev.org/gbdk and charles doty mentioned the possibility of
> > him porting it for this reason

> Well, any C compiler for Z80 will do I guess since both SMS and GG are Z80 based, the problem with
> the gameboy C compiler is that the gb uses a slightly modified Z80, anyway the compiler may not
> generate those special opcodes.

gbdk is a z80 compiler though it is most used for the variant used in the gb
 
Ricardo Bittencourt
  • Guest
Reply with quote
Post Posted: Wed Jun 30, 1999 5:08 pm
Quote
> Its hard to develop a sms/GG C compiler?

Some years ago I made a C compiler for MSX, called RBC.
It will work without modification for the sega 8-bit
consoles since they use the same processor.

You can get RBC at http://www.lsi.usp.br/~ricardo/msx.htm
 
Paul Lee
  • Guest
Reply with quote
Post Posted: Wed Jun 30, 1999 6:09 pm
Quote
> Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> it looks very powerfull! But a sms one would be really more nicer :)

If you can find a Z80 C compiler that is all you would need (unless the SMS has some funny addressing). The Genesis compiler was the Sozobon C compiler that I modified because of the Genesis RAM layout.
 
Lin Ke-Fong
  • Guest
Reply with quote
Post Posted: Wed Jun 30, 1999 6:11 pm
Quote
> > [SMS/GG C compiler]
> > > > > > > Well, a port from the one for Gameboy should be technically faisable.
> > > > > > This could boost the sms development scene!
> > > > > I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
> > > > > port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit
> > > > Hum...let's see!
> > > Actually the source is available www.gbdev.org/gbdk and charles doty mentioned the possibility of
> > > him porting it for this reason

> > Well, any C compiler for Z80 will do I guess since both SMS and GG are Z80 based, the problem with
> > the gameboy C compiler is that the gb uses a slightly modified Z80, anyway the compiler may not
> > generate those special opcodes.
> gbdk is a z80 compiler though it is most used for the variant used in the gb

Yes, you are right... I am wrong! I've checked gbdk and well it's a full featured C compiler for
Z80 processors.

So it seems there is no problem for the C compiler, we just have to rewrite the libraries.
 
  • Joined: 29 Jun 1999
  • Posts: 335
  • Location: Brazil
Reply with quote
Post Posted: Wed Jun 30, 1999 6:31 pm
Quote
> > > [SMS/GG C compiler]
> > > > > > > > Well, a port from the one for Gameboy should be technically faisable.
> > > > > > > This could boost the sms development scene!
> > > > > > I suggest taking contact with the guy who made it. Maybe he would be interested in doing the
> > > > > > port himself. Does anybody know the webpage for it ? (I even forgot the name of the kit
> > > > > Hum...let's see!
> > > > Actually the source is available www.gbdev.org/gbdk and charles doty mentioned the possibility of
> > > > him porting it for this reason

> > > Well, any C compiler for Z80 will do I guess since both SMS and GG are Z80 based, the problem with
> > > the gameboy C compiler is that the gb uses a slightly modified Z80, anyway the compiler may not
> > > generate those special opcodes.
> > gbdk is a z80 compiler though it is most used for the variant used in the gb

Do you think its hard to do that?
Quote
> Yes, you are right... I am wrong! I've checked gbdk and well it's a full featured C compiler for
> Z80 processors.

> So it seems there is no problem for the C compiler, we just have to rewrite the libraries.
  View user's profile Send private message Visit poster's website
  • Joined: 29 Jun 1999
  • Posts: 66
  • Location: Houston TX
Reply with quote
Post Posted: Thu Jul 01, 1999 8:38 pm
Quote
> > So it seems there is no problem for the C compiler, we just have to rewrite the libraries.

You'll also need to use the Game Gear assembler and linker.


  View user's profile Send private message Visit poster's website
Ex-Cyber
  • Guest
Reply with quote
Post Posted: Sun Jul 04, 1999 12:46 pm
Quote
> > Its hard to develop a sms/GG C compiler? I have a genesis C compiler, and
> > it looks very powerfull! But a sms one would be really more nicer :)

> Well, a port from the one for Gameboy should be technically faisable.

Technically feasible, maybe, but imho it wouldn't be the best course of action. From what I've read, the Gameboy's CPU is missing quite a bit compared to the Z80, and some instructions have been added or have had their opcodes changed. imho, you'd probably be better off starting with a plain Z80 compiler.
 
Reply to topic



Back to the top of this page

Back to SMS Power!