Author Topic: On-calc C compiler for 9860  (Read 6878 times)

0 Members and 1 Guest are viewing this topic.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
On-calc C compiler for 9860
« on: August 30, 2011, 08:55:36 pm »
Does anyone know of a way to compile c on a calc?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: On-calc C compiler for 9860
« Reply #1 on: August 30, 2011, 08:56:28 pm »
Hmm good question, I do not remember seeing one, but a while ago somebody talked about a tool that let people program some sort of language on-calc. I think it was a derivative of BASIC, though.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: On-calc C compiler for 9860
« Reply #2 on: August 30, 2011, 08:58:02 pm »
I remember seeing that on CK.

BTW: does text in mlc work on your hacked calc?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: On-calc C compiler for 9860
« Reply #3 on: August 30, 2011, 09:27:00 pm »
Now that there is the gcc SDK for the prizm someone should port it over to the fx-98 series first off. Then secondly the compiler can be slightly modified and recompiled for the the fx-98. i believe the only thing that needs to be done to have gcc for the fx-98 is write a new linker script and crt.s file which should be rather simple. Then for the on calc version the modifications are a little more intense. the linker script and crt.s file will stay the same but the compiler itself will require a partial STL library to be ported for file io and the console to work properly. it will also require that a new main function is created that allows the user to select the proper file and then calls the original main. I was going to attempt this on the Prizm soon but i could also make an fx-98 version too with only minor modifications

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: On-calc C compiler for 9860
« Reply #4 on: August 30, 2011, 09:34:41 pm »
Thats cool. one prob, i cant do c (yet)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: On-calc C compiler for 9860
« Reply #5 on: August 31, 2011, 02:35:38 am »
no probl
Thats cool. one prob, i cant do c (yet)
No problem. I'll check Simon Lothar's documentation on the fx-98 series so I can modify the proper files to work correctly. I will also rewrite mkg3a into a new mkg1a unless such an app already exists. Basically I will turn this Prizm exclusive project into a Casio calc harmony one instead :)

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline Horrowind

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +6/-0
    • View Profile
Re: On-calc C compiler for 9860
« Reply #6 on: August 31, 2011, 03:34:27 am »
I will also rewrite mkg3a into a new mkg1a unless such an app already exists. Basically I will turn this Prizm exclusive project into a Casio calc harmony one instead :)

I think this has already been done. If you take a look here, there is a link for using gcc to compile c programs instead of casios sdk. also g1a wrapper should be the analogon to mkg3a...

I should add some userbar/avatar flavor... my post always seem so short :)
« Last Edit: August 31, 2011, 03:45:31 am by Horrowind »

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: On-calc C compiler for 9860
« Reply #7 on: September 03, 2011, 10:22:47 am »
This is cool! I would be more interested in c if I could do it on my calc since it would be portable and I just find programming on my calc more comfortable.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: On-calc C compiler for 9860
« Reply #8 on: September 13, 2011, 12:49:31 pm »
Hey, z80man, are you currently working on this project or are you going to. (not trying to nag you or anything LOL)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: On-calc C compiler for 9860
« Reply #9 on: September 13, 2011, 07:29:38 pm »
I'm going to later on but right now it is a fairly low priority. There is still plenty of documentation to be done and I have a shell to write also.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: On-calc C compiler for 9860
« Reply #10 on: September 13, 2011, 11:54:10 pm »
OK, cool! Be sure to let me know when you start on it!



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0