Awesomeness
LV1 Newcomer (Next: 20)
Offline
Last Login: 21 September, 2011, 02:33:04
Date Registered: 14 September, 2011, 05:06:57
Posts: 15
Topic starter
Total Post Ratings: 0
|
 |
« on: 17 September, 2011, 05:10:16 » |
0
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
Lionel Debroux
|
 |
« Reply #1 on: 17 September, 2011, 08:05:58 » |
0
|
There are several topics around here, and some information on Hackspire 
|
|
|
|
|
Logged
|
|
|
|
Awesomeness
LV1 Newcomer (Next: 20)
Offline
Last Login: 21 September, 2011, 02:33:04
Date Registered: 14 September, 2011, 05:06:57
Posts: 15
Topic starter
Total Post Ratings: 0
|
 |
« Reply #2 on: 17 September, 2011, 16:20:46 » |
0
|
Could you please link to them? I can't find these topics you speak of 
|
|
|
|
|
Logged
|
|
|
|
ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
Offline
Gender: 
Last Login: Yesterday at 19:47:13
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 765
Total Post Ratings: +151
|
 |
« Reply #3 on: 18 September, 2011, 15:14:08 » |
0
|
|
|
|
|
|
Logged
|
|
|
|
adriweb
Editor
LV9 Veteran (Next: 1337)
Offline
Gender: 
Last Login: Yesterday at 00:38:33
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1196
Total Post Ratings: +185
|
 |
« Reply #4 on: 18 September, 2011, 18:52:12 » |
0
|
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.
|
|
|
|
|
Logged
|
|
|
|
Awesomeness
LV1 Newcomer (Next: 20)
Offline
Last Login: 21 September, 2011, 02:33:04
Date Registered: 14 September, 2011, 05:06:57
Posts: 15
Topic starter
Total Post Ratings: 0
|
 |
« Reply #5 on: 19 September, 2011, 02:05:32 » |
0
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
Lionel Debroux
|
 |
« Reply #6 on: 19 September, 2011, 06:57:28 » |
0
|
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 
|
|
|
|
|
Logged
|
|
|
|
adriweb
Editor
LV9 Veteran (Next: 1337)
Offline
Gender: 
Last Login: Yesterday at 00:38:33
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1196
Total Post Ratings: +185
|
 |
« Reply #7 on: 19 September, 2011, 12:30:14 » |
0
|
If you install Xcode (Developer Suite), all the things like Make, gcc, gdb etc. will be available.
MacPorts is quite useful indeed, btw
|
|
|
|
|
Logged
|
|
|
|
Awesomeness
LV1 Newcomer (Next: 20)
Offline
Last Login: 21 September, 2011, 02:33:04
Date Registered: 14 September, 2011, 05:06:57
Posts: 15
Topic starter
Total Post Ratings: 0
|
 |
« Reply #8 on: 20 September, 2011, 23:28:08 » |
0
|
If you install Xcode (Developer Suite), all the things like Make, gcc, gdb etc. will be available.
MacPorts is quite useful indeed, btw
orly?  Yes, this is a 100% legit copy of the dev suite. It may be quite old though.
|
|
|
|
|
Logged
|
|
|
|
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
Offline
Gender: 
Last Login: 18 May, 2013, 00:41:29
Date Registered: 15 August, 2010, 09:18:54
Posts: 3187
Total Post Ratings: +218
|
 |
« Reply #9 on: 21 September, 2011, 00:38:20 » |
0
|
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?
|
|
|
|
|
Logged
|
∂²Ψ -(2m(V(x)-E)Ψ --- = ------------- ∂x² ℏ²Ψ
|
|
|
adriweb
Editor
LV9 Veteran (Next: 1337)
Offline
Gender: 
Last Login: Yesterday at 00:38:33
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1196
Total Post Ratings: +185
|
 |
« Reply #10 on: 21 September, 2011, 23:21:23 » |
0
|
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/... ?
|
|
|
|
|
Logged
|
|
|
|
|