Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: SirCmpwn on October 21, 2010, 11:33:01 pm

Title: Secret Project Teaser
Post by: SirCmpwn on October 21, 2010, 11:33:01 pm
Hello,
I just turned this:
Code: [Select]
using TIOS;
using TIOS.Drawing;

public class Test
{
public static void Main()
{
Interrupt.DisableRunIndicator();
LCD.Clear();
Home.Up();
Home.WriteLine("Hello World!");
Input.WaitKey();
Home.NewLine();
}
}
Into the attached file.
Title: Re: Secret Project Teaser
Post by: DJ Omnimaga on October 21, 2010, 11:36:55 pm
O.o

Which language would this me? Is that C? I remember in 2007 on the odl Omnimaga board Halifax was working on HACC, which later got renamed to SDCC I believe, but it never came to fruition. :(

A C compiler would be nice for calc, although I have heard that the z80 architecture wouldn't allow an efficient C language.
Title: Re: Secret Project Teaser
Post by: AngelFish on October 21, 2010, 11:37:25 pm
Is that C?

EDIT: My first time being Ninja'd ;D
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 21, 2010, 11:40:04 pm
C#
Title: Re: Secret Project Teaser
Post by: DJ Omnimaga on October 21, 2010, 11:41:39 pm
Aah cool. Would a C# compiler face the same issues as a C one for the z80 platform? I think the issue was due to the processor being 8 bit.
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 21, 2010, 11:42:10 pm
Not really.  This is being designed from the ground up for calculators.
Title: Re: Secret Project Teaser
Post by: AngelFish on October 21, 2010, 11:43:40 pm
People have developed C compilers (http://sdcc.sourceforge.net/) for the Z80 before. Assuming C# is similar to C, it should be possible.
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 21, 2010, 11:45:05 pm
C# is an OOL.
Title: Re: Secret Project Teaser
Post by: DJ Omnimaga on October 21, 2010, 11:45:55 pm
Ah ok Sir. And Qwerty I know, I was asking because those C compilers produce slow, inneficient code and I heard experienced ASM coders say a good C compiler is impossible on a processor like the z80 because it is too limited for it. However, maybe it is different for C#. I just hope it doesn't have to be stripped down too much x.x
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 21, 2010, 11:46:45 pm
Yeah, it should be okay.
Title: Re: Secret Project Teaser
Post by: DJ Omnimaga on October 21, 2010, 11:48:07 pm
Well good luck then :D

We need something like TIGCC for the z80 line, even if not necessarly C. Will your development enviromnents support this language?
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 21, 2010, 11:48:40 pm
Probably.  I need to finish the compiler first.
Title: Re: Secret Project Teaser
Post by: Eeems on October 22, 2010, 12:05:25 am
:O i was totally thinking about making something like this!
Title: Re: Secret Project Teaser
Post by: Scipi on October 22, 2010, 12:10:29 am
What about a C++ compiler? Is that possible?
Title: Re: Secret Project Teaser
Post by: Ranman on October 22, 2010, 12:15:58 am
I was hoping for Small C.

But C#... Wow!
Title: Re: Secret Project Teaser
Post by: Madskillz on October 22, 2010, 12:58:23 am
Nice an object oriented language is coming to calcs!
Title: Re: Secret Project Teaser
Post by: Ranman on October 22, 2010, 01:35:46 am
Are you not the least bit worried about the overhead associated with object oriented languages? Or, have you come up with a clever method to get around that?
Title: Re: Secret Project Teaser
Post by: Deep Toaster on October 22, 2010, 02:26:51 pm
C# is an OOL.

COOL! ;D

This would be amazing on the calc... So is this the language you were working on?
Title: Re: Secret Project Teaser
Post by: nemo on October 22, 2010, 03:42:21 pm
would this be like an object oriented axe parser off-calc? and would it have all (most) of the features of an oop language?
Title: Re: Secret Project Teaser
Post by: Munchor on October 22, 2010, 03:50:57 pm
C# omg awesome
Title: Re: Secret Project Teaser
Post by: tloz128 on October 22, 2010, 04:28:16 pm
How will this end up comparing in speed to native assembler language?
Title: Re: Secret Project Teaser
Post by: Munchor on October 22, 2010, 04:35:51 pm
Omg, secret project looks awesome :D:D:D:D:D Just can't wait for progress.
How will this end up comparing in speed to native assembler language?

Definetely slightly different, right?
Title: Re: Secret Project Teaser
Post by: Eeems on October 22, 2010, 05:11:19 pm
It should depend on the program, I'm guessing it's going to closely match AXE speedwise. It all depends on how he structures how it compiles.
Title: Re: Secret Project Teaser
Post by: JustCause on October 22, 2010, 06:03:02 pm
Long overdue, and euphoria-inducing. Yay!
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 22, 2010, 08:05:04 pm
Are you not the least bit worried about the overhead associated with object oriented languages? Or, have you come up with a clever method to get around that?
Working on it.
How will this end up comparing in speed to native assembler language?
Slower, but probably not much.
Title: Re: Secret Project Teaser
Post by: DJ Omnimaga on October 22, 2010, 08:07:18 pm
If SirCmpwn can manage to make this language run really fast and be small enough (like Axe, maybe), it will really rule. Most attempts at porting a popular language to calcs usually produced bloated code x.x. This will definitively be popular once released, as many people know C and shouldn't have problems switching to C#, not to mention some people know C# too. I think Omnimaga will become the home of 3rd party language for z80 calcs ;D
Title: Re: Secret Project Teaser
Post by: tr1p1ea on October 22, 2010, 08:34:16 pm
I was hoping for Small C.

But C#... Wow!

There is a Small C cross compiler SDCC, but it pretty much produces bloatware as you can imagine :).
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 22, 2010, 08:35:04 pm
Thanks DJ!
Title: Re: Secret Project Teaser
Post by: DJ Omnimaga on October 22, 2010, 08:44:57 pm
I was hoping for Small C.

But C#... Wow!

There is a Small C cross compiler SDCC, but it pretty much produces bloatware as you can imagine :).
Yeah I mentionned it in another post. I didn,t knew there was Small C and regular C, though. X.x
Title: Re: Secret Project Teaser
Post by: Ranman on October 22, 2010, 08:51:43 pm
I was hoping for Small C.

But C#... Wow!

There is a Small C cross compiler SDCC, but it pretty much produces bloatware as you can imagine :).
Yeah I mentionned it in another post. I didn,t knew there was Small C and regular C, though. X.x

Yeah... I remember SDCC. I just don't remember hearing anything good about it.

One would think that with a specific platform in mind (like TI Z80 calcs) along with a super-minimal high level language (like Small C), that it could result in a highly optimized compiled code.
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 22, 2010, 09:28:55 pm
Yeah, it shouldn't be too bad, and there is auto-optimization as well, so things like cp 0 don't get through.
Title: Re: Secret Project Teaser
Post by: nemo on October 22, 2010, 09:31:25 pm
any idea when we'll be able to try it for ourselves?
Title: Re: Secret Project Teaser
Post by: qazz42 on October 22, 2010, 10:34:11 pm
yay, now I can program in C#, and program my calc

O:
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 22, 2010, 10:35:09 pm
In a while.  I haven't implemented math, non-string literals, any libraries (minus the hard coded methods used in my posted code), and I haven't implemented variables, stack, or heap at all.
Title: Re: Secret Project Teaser
Post by: ztrumpet on October 22, 2010, 10:38:32 pm
Wow.  I hope this makes it to completion.  This would be a great way to program.  Good luck on it Sir. :)
Title: Re: Secret Project Teaser
Post by: SirCmpwn on October 22, 2010, 10:39:21 pm
Thanks ztrumpet.  I don't think I'm going to support generics yet, by the way.
Title: Re: Secret Project Teaser
Post by: calcdude84se on October 23, 2010, 03:14:45 pm
Looks cool! :D
Also, technical notice: either SDCC or Z88DK (I'm not sure which) does perform optimizations on the generated assembly code, but, as stated, the optimized assembly code is still far from good. Good luck on doing better! :)