Results
|
Choice
|
Votes
|
|
Percent
|
Yes, it would make assembly programming easier for me
|
54
|
28.1%
|
|
Yes, it would be nice to program in something other than assembly
|
62
|
32.3%
|
|
No, assembly works just fine for me
|
21
|
10.9%
|
|
No, I program just in BASIC, I have no interest in learning C
|
13
|
6.8%
|
|
I don't have a z80 calculator
|
22
|
11.5%
|
|
I have a different answer
|
20
|
10.4%
|
|
|
Re: Would you like to see a C compiler for the z80 caculators?
|
Tijl Coosemans
|
Sdcc would be a nice start, but it's not really windows friendly (needs cygwin if I'm not mistaken). Anyway, having a c compiler could be nice if you want to make a quick proof of concept, but these calcs don't have a lot of ram and aren't that fast, so asm is always going to be a lot better and z80 isn't such a difficult language.
|
Reply to this comment
|
16 February 2005, 11:38 GMT
|
|
Re: Would you like to see a C compiler for the z80 caculators?
|
Rob van Wijk
|
There are more languages than Assembly, C and TI-Basic... How about a Pascal compiler? I don't want to start a flamewar (of course, there is no need for this compiler to run on anything but Linux, that goes without saying ;) ), but I think Pascal has some serious benefits.
At the moment, I lack both the time and the required skills to make it myself. On the other hand, I've been planning to make this program for quite some time now, sooner or later it just might actually happen. Anyway, I guess this is as good a time as any to ask if anybody would actually use such a program. Would I make anyone happy with this, or only cause people to wonder "Why Pascal of all languages?"?
|
Reply to this comment
|
16 February 2005, 12:29 GMT
|
|
|
|
|
|
|
|
Re: Re: Re: Would you like to see a C compiler for the z80 caculators?
|
Ben Cherry
(Web Page)
|
haha, that's funny. Java on a calculator! Sorry, but if Java could run at all, it would most likely be even slower than BASIC. Java is the most bloated language ever. Try running a simple "Hello, world!" program in Java on your computer. Look in the task manager and see how much RAM it takes. Java uses up huge amounts of system resources to incorporate all of the features that make it what it is, a safe, portable language. In addition to the JRE which catches exceptions and causes no kind of crash for you computer, the garbage collector frees memory for you, and it is constantly making things work smoothly and portably. In order to run Java on a calc, you would need to take all of that away because you cant use those resources, and essentially what would be left is C. IMHO, C is the epitome of languages. It contains just what you need to do anything, and do it fast. Really fast. C++ is great, but there is nothing you can do in C++ that you can't do as fast or faster in C with a little more work, just like there is nothing in C you can't do as fast or faster in assembly, but assembly is in many ways a difficult language, and every processor has its own, whereas C is universal, more or less.
|
Reply to this comment
|
17 February 2005, 04:07 GMT
|
|
|
|
|
|
|
|
|
|
|
Re: Re: Re: Re: Would you like to see a C compiler for the z80 caculators?
|
Krach42
(Web Page)
|
I'm going to add some stuff to basicly explain why Java will never run on a z80 processor.
First, Java bytecode has 4 primatives, Ints (32-bit), Longs (64-bit), Floats (32-bit) and Doubles (64-bit) Even if you were to just not suppor the float and doubles, which would avoid you having to write library calls to handle IEEE floating-point math, you're faced with the problem of having to perform 32-bit math in the simplest of situations. If you say "byte b;" in Java, it allocates a whole 32-bits. There is nothing smaller for it to use.
Next up, Java bytecode to allow for addressed local-variables works by providing a short worth of addressable 32-bit values, which are effectively used in a non-managed flat array. With means you have 65,536 * 32-bits = 256KiB of memory required available for each Java method. Last I checked (looks some stuff up) yep. The Z80 calculators still don't have that much memory available.
So basicly, Java having been designed to be Machine-Independent is actually quite dependant on the processor being capable of performing efficient 32-bit math, along with IEEE math in both single and double percision.
|
Reply to this comment
|
18 February 2005, 04:12 GMT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re: Re: Re: Re: Would you like to see a C compiler for the z80 caculators?
|
Krach42
(Web Page)
|
I also find that you have a confused opinion about the speed of languages. Be it known, that rarely with modern machines can a human produce the same quality of code in assembly that a compiler can. A good example, I was working on AltiVec, and the compiler produced into assembly two instructions that accomplish the same task, put a value of 1 into each word element of the vector as a constant value. Why did it do this? Because due to scheduling it could actually perform the two actions simultaneously. A human would have to be quite well versed in assembly and timing diagrams and optimization techniques to produce the same code (which will not btw, run any faster)
Java has also been shown to be little slower than C++ when using the JITC interface, and in fact, occationally faster. Java is no-longer the slow laboring beast that it once was. Now, I still don't like the language for reasons entirely appart from speed or anything like that. I don't like the language, and I don't like the wrongful claims made about it. (note: Speed has never been a claim of Java, but interoperability, and platform neutrality has. I've had less problem with writing portable C, than with writing Java that behaves properly on multiple operating systems)
In fact, since the memory allocation interface is implemented in the Java Bytecode, there is literally no way to just throw out the garbage collector. The bytecode is literally dependant on it.
|
Reply to this comment
|
18 February 2005, 04:13 GMT
|
|
Re: Would you like to see a C compiler for the z80 caculators?
|
jond
|
I would love to see one for most Z80's, at least the flashable ones.
|
Reply to this comment
|
17 February 2005, 16:51 GMT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re: Re: Re: Re: Would you like to see a C compiler for the z80 caculators?
|
Zeroko
(Web Page)
|
Considering the number of times I turn my calculator on & off, the flash would wear out too quickly (it only has 10,000-1,000,000 rewrites, usually). Plus, my calculator sometimes crashes when I hit 2nd-off. :) MRAM (magnetic RAM) would be really cool. >1,000,000,000,000,000 rewrites, & it can be used like RAM, but keeps data like (E)EPROM or flash.
|
Reply to this comment
|
20 February 2005, 20:05 GMT
|
|
1 2 3
You can change the number of comments per page in Account Preferences.
|