Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: Awesomeness on September 16, 2011, 11:10:16 pm

Title: Mac C Programming?
Post by: Awesomeness on September 16, 2011, 11:10:16 pm
I have working ndless on my calculator.  How do I program with C in it?  I have basic experience in C; I just need a basic tutorial on how to put a "Hello world" program over.
Title: Re: Mac C Programming?
Post by: Lionel Debroux on September 17, 2011, 02:05:58 am
There are several topics around here, and some information on Hackspire :)
Title: Re: Mac C Programming?
Post by: Awesomeness on September 17, 2011, 10:20:46 am
Could you please link to them?  I can't find these topics you speak of :P
Title: Re: Mac C Programming?
Post by: ExtendeD on September 18, 2011, 09:14:08 am
http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction
Title: Re: Mac C Programming?
Post by: Adriweb on September 18, 2011, 12:52:12 pm
It might be a little bit more difficult to do what's detailed in that website on a Mac, though.

You may have to rebuild some stuff by yourself...

For the C programming editor, by the way, I'd recommand XCode.

Than you can link some script to it to automatically compile through the arm toolchain etc.
Title: Re: Mac C Programming?
Post by: Awesomeness on September 18, 2011, 08:05:32 pm
I don't think it's possible.  Macs don't come with things like make and wget and apt-get.  They're Unix, but weird.
Title: Re: Mac C Programming?
Post by: Lionel Debroux on September 19, 2011, 12:57:28 am
Quote
Macs don't come with things like make [snip] and apt-get
Neither do most flavors of Linux, out of the box :)
apt-get is one of the packaging tools of Debian and derivatives, and most distributions do not include, due to space constraints, build-essentials (or equivalent), in their out of the box configuration. And some distros out there might have curl instead of wget.

On MacOS X, use MacPorts :)
Title: Re: Mac C Programming?
Post by: Adriweb on September 19, 2011, 06:30:14 am
If you install Xcode (Developer Suite), all the things like Make, gcc, gdb etc. will be available.

MacPorts is quite useful indeed, btw
Title: Re: Mac C Programming?
Post by: Awesomeness on September 20, 2011, 05:28:08 pm
If you install Xcode (Developer Suite), all the things like Make, gcc, gdb etc. will be available.

MacPorts is quite useful indeed, btw

orly?

(http://minecraft.techmastertelecom.com/orly.png)

Yes, this is a 100% legit copy of the dev suite.  It may be quite old though.
Title: Re: Mac C Programming?
Post by: AngelFish on September 20, 2011, 06:38:20 pm
You can also use LLVM instead of GCC. Have you tried reading the man pages for the tools to figure out how to call them?
Title: Re: Mac C Programming?
Post by: Adriweb on September 21, 2011, 05:21:23 pm
Try making a very basic C program in XCode.

Check in the project' settings whether it compile through GCC or LLVM.

 ^ You hould have both if you install a pretty new verion of XCode. (> 3.something I think).


try "locate gcc"  it shoudl be in /usr/bin/... ?