Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: willrandship on November 10, 2010, 11:43:04 pm

Title: Nspire-gcc port to nspire?
Post by: willrandship on November 10, 2010, 11:43:04 pm
I was just wondering, how hard would it be to port the arm toolchain to the nspire, so you could write C stuff on the go? Besides, Nspire-gcc itself, all you need is a text editor. It would sure improve my C programming time. :D
Title: Re: Nspire-gcc port to nspire?
Post by: SirCmpwn on November 10, 2010, 11:47:24 pm
I'd love to see this, and have thought about it a bit myself.  The only problem is that I don't have that much expertise to do it myself.
Title: Re: Nspire-gcc port to nspire?
Post by: DJ Omnimaga on November 11, 2010, 01:02:04 am
That might be cool. One even cooler idea, though, would be to add Nspire support to GCC4TI, so 68K programmers can also compile their games to ARM9 Nspire C (kinda like how you can compile for the 89, 89T, 92+ and v200.)
Title: Re: Nspire-gcc port to nspire?
Post by: willrandship on November 11, 2010, 11:23:42 am
The trouble with that is it's a completely different processor. ARM and 68k have little in common, and are fairly spread out. I might be wrong, though (probably :P)

I was thinking nano would make a good text editor, simple, easy to use gui, low power, open source. Or, we could write our own. :P
Title: Re: Nspire-gcc port to nspire?
Post by: DJ Omnimaga on November 11, 2010, 06:25:09 pm
Yeah I know, but it could compile different code at once maybe, I guess it could be slow, though, since it would need to compile in 68K then do an additional compiling run for ARM.
Title: Re: Nspire-gcc port to nspire?
Post by: willrandship on November 11, 2010, 10:00:03 pm
Well, if the code's compatible, we could just port both compilers. Run nspire-gcc for nspire games, gcc4ti for 68k (and maybe auto-embed in an oncalc emu) ;)
Title: Re: Nspire-gcc port to nspire?
Post by: bwang on November 12, 2010, 12:29:47 am
It all depends on whether we can get a standard library working. After all, GCC can compile itself.