On Calc Compilation
#1
Posted 06 February 2005 - 09:56 PM
Is it possible to run a compiler on the calculator? Ive read through prior messages on this forum, and im quite sure its possible. I kno that the AFX has enough memory to run several of the C compilers out there, and i guess an assembler program could be possible too.
But exactly how could it be accomplished? Even if we had an editor that has full ASCII character support, how is it possible to save the file onto the rom, so the compiler can access it? Or is it possible to get the compiler to read it straight of the RAM? Also, another problem is that the compiler only creates an object file (.obj), which then has to be run through a linker, to be made into an exe.
So really my main questions are, how can i get the compiler to read the program code, and how can i get it to save the .obj and the .exe files.
Of course... i may be totaly wrong here, and that there is no possibilty to do any of this, and we'll just have to live off of interpreted programs like Casio-Basic or MLC (which is a great piece of work, IMO).
Thanks,
Zerocool
#2
Posted 06 February 2005 - 10:04 PM
#3
Posted 06 February 2005 - 10:07 PM
#4
Posted 06 February 2005 - 10:35 PM
However, for on calc programming you should use MLC. It's not only an interpreter like Casio Basic, but also a kind of compiler that generates a bytecode before interpreteing it (--> not interpreting the source and much faster thus). Also the MLC interpreter/compiler takes much fewer ressources than any C compiler could (as the syntax is not that complex as C), and the program's sources don't do, too (you need no moduls for graphical routines and so on).
Also a good alternative for on calc programming is using the WinG100 emulator and developing/testing your stuff on PC completely (your PC isn't that mobile your calc is however ).
#5
Posted 06 February 2005 - 11:15 PM
#6
Posted 07 February 2005 - 12:15 AM
yes, MLC is great, but it does have it limitations. Its purely game programming, which dont always suit one's needs. There are a lot things that cant be done with MLC that could be done with ASM or C. But yes, maybe MLC is the best we can get for on calculator programming. But if compiling is possible, it would be awesome
well anyways, thanks again
Zerocool
#7
Posted 07 February 2005 - 02:11 AM
#8
Posted 07 February 2005 - 10:53 AM
Useful tools for doing this stuff (ramdisk, enter key emu, highmem bound changer) are in my AfxPC package (somewhere on the net).
Probably with RXE possible a different compiler would be more suitable.
There's lots of tiny compilers or even C interpreters to test.
BTW My Ramdisk simply overwrites end of memory - if it isn't used it is ok but when you have some basic stuff there your calc may crash.
A86 assembler works with less pain.
My (poor) method of booting other code wastes 2 or 3 flash disks so it wouldn't be popular anyway.
I don't have time in visible future to play with it, I hadn't got time even to play MLC yet
Roeoender.
#9
Posted 07 February 2005 - 10:49 PM
#10
Posted 09 February 2005 - 11:23 AM
@Roe: do you think that there is a possibility to run NASM (259kb , it would thake 2 drives) , and TLink (131kb )?
Oh well, I guess I should use A86 instead. Could you give more information how should I run it?
#11
Posted 09 February 2005 - 03:53 PM
Before doing anything make sure to backup your data to the PC
@Aleph: just read all readme.txt from AfxPC package.
Roeoender.
#12 Guest_Guest_*
Posted 09 February 2005 - 05:32 PM
do any of the settings for the ramdisk or maxmem need to be changed? like the address where the ramdisk is stored?
greetz,
zerocool
#13 Guest_Guest_*
Posted 25 February 2005 - 04:22 PM
Can adding more RAM to the CFX give it the possibility to have a compiler for it?
Andy.Davies: I deleted your other post on this, you only need to ask once
Edited by Andy.Davies, 25 February 2005 - 05:10 PM.
#14
Posted 25 February 2005 - 05:08 PM
#15
Posted 25 February 2005 - 05:30 PM
He soldered a 32KB chip into his calc and got 64KB by that, some others copied it (btw. he also overclocked his calc to 8MHz and some copied it too, that's twice the original speed )
No, a ROM update would be necessarry. Call Martin Poupe (-> Martin?s Hacking Site), but I think he stopped it a long time ago.Can adding more RAM to the CFX give it the possibility to have a compiler for it?
#16
Posted 25 February 2005 - 06:48 PM
#17
Posted 26 February 2005 - 04:51 PM
huhn_m: Please log in when posting. The guest posting is not for lazy users
#18 Guest_Guest_*
Posted 28 February 2005 - 04:12 PM
#19
Posted 28 February 2005 - 04:18 PM
#20 Guest_Guest_*
Posted 28 February 2005 - 04:24 PM
#21
Posted 28 February 2005 - 04:28 PM
#22
Posted 28 February 2005 - 06:53 PM
#23 Guest_Guest_*
Posted 28 February 2005 - 08:14 PM
i mean... i guess we could do it... but only like 2 people would use it
I know a lot of people who would like to have the MLC on CFX
#24
Posted 28 February 2005 - 08:18 PM
#25
Posted 28 February 2005 - 11:58 PM
#26 Guest_CFX & FX Owner_*
Posted 03 March 2005 - 04:12 PM
If so, where do you get a ROM reader?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users