Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: SirCmpwn on October 21, 2010, 11:33:01 pm
-
Hello,
I just turned this:
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.
-
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.
-
Is that C?
EDIT: My first time being Ninja'd ;D
-
C#
-
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.
-
Not really. This is being designed from the ground up for calculators.
-
People have developed C compilers (http://sdcc.sourceforge.net/) for the Z80 before. Assuming C# is similar to C, it should be possible.
-
C# is an OOL.
-
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
-
Yeah, it should be okay.
-
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?
-
Probably. I need to finish the compiler first.
-
:O i was totally thinking about making something like this!
-
What about a C++ compiler? Is that possible?
-
I was hoping for Small C.
But C#... Wow!
-
Nice an object oriented language is coming to calcs!
-
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?
-
C# is an OOL.
COOL! ;D
This would be amazing on the calc... So is this the language you were working on?
-
would this be like an object oriented axe parser off-calc? and would it have all (most) of the features of an oop language?
-
C# omg awesome
-
How will this end up comparing in speed to native assembler language?
-
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?
-
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.
-
Long overdue, and euphoria-inducing. Yay!
-
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.
-
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
-
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 :).
-
Thanks DJ!
-
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
-
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.
-
Yeah, it shouldn't be too bad, and there is auto-optimization as well, so things like cp 0 don't get through.
-
any idea when we'll be able to try it for ourselves?
-
yay, now I can program in C#, and program my calc
O:
-
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.
-
Wow. I hope this makes it to completion. This would be a great way to program. Good luck on it Sir. :)
-
Thanks ztrumpet. I don't think I'm going to support generics yet, by the way.
-
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! :)