forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Learning C

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Wil



Joined: 23 Feb 2005
Posts: 15
Location: Las Vegas

PostPosted: Tue Nov 08, 2005 1:03 pm    Post subject: Learning C Reply with quote

Hey there. I've been reading the forums here for a long while now -- since I got my psp in March -- and I just recently decided to compile the SDK and toolchain in CygWin and try my hand at programming for the PSP.

I had figured that since I had already programmed in several different languages, and had learned a little bit of C++ a few years ago, as well as being pretty fluent in PHP (which has a lot of the same syntax from what I can tell), that I wouldn't have much trouble. Turns out that was wrong. I could probably get along just fine without, but I know I could do much better if I would just sit down and specifically learn C... and that is where you guys come in.

I bet you guys were thinking "Great, another 'How do I display an image?' question." Well, you're wrong. I was hoping you guys could point me in the direction of some websites, or perhaps even some books that I can buy or get from the local library, that will teach me the basics of C and take me to the point of having a good solid understanding of it C.

Hopefully you guys can help me out by pointing me in the correct direction and I hope I haven't asked a question that has already been answered as I did do a search and found nothing. Thanks.
_________________
Wil
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CyberBill



Joined: 26 Jul 2005
Posts: 86
Location: Redmond, WA

PostPosted: Tue Nov 08, 2005 2:51 pm    Post subject: Reply with quote

http://www.cplusplus.com/

Thats where I learned C/C++ 5 years ago. :)

Id also recomend picking up a compiler (Visual Studio 6 or better... VisualStudio.NET 2003, or even VisualStudio.NET 2005 which is in beta and FREE right now) and learning on Windows before jumping into PSP programming. Its much faster to compile and run a windows or dos app than a PSP app.
Back to top
View user's profile Send private message AIM Address MSN Messenger
ReKleSS



Joined: 18 Jun 2005
Posts: 73
Location: Melbourne, Australia

PostPosted: Tue Nov 08, 2005 3:00 pm    Post subject: Reply with quote

I wouldn't recommend a MS compiler if you're learning towards working with the PSP. Grab a version of gcc (cygwin?) and work with that instead - you *will* be using gcc to compile psp binaries, so I would recommend becoming familiar with it from the start. In theory C code should work equally well on any compiler, but you know how that usually goes...
-ReK
Back to top
View user's profile Send private message
JustChris



Joined: 03 Nov 2005
Posts: 21

PostPosted: Tue Nov 08, 2005 4:46 pm    Post subject: Reply with quote

As far as compiling for the PSP goes, ReKleSS is right. gcc would be the choice for compiling, particularly if it's with the Cygwin environment. With this said, your editor for PSP apps is your choice, since you won't be using it to compile and set up projects, just to write code. I use Dev C++ for coding, since that's what I've been comfortable with when making programs for PC.
Back to top
View user's profile Send private message
Mr.Modem



Joined: 21 Sep 2005
Posts: 28

PostPosted: Tue Nov 08, 2005 11:51 pm    Post subject: Reply with quote

http://www.cprogramming.com/ is and excellent site for c++ and c coding. Their forum is great. Devcpp is very good if you want to play around with c.
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed Nov 09, 2005 8:32 am    Post subject: Reply with quote

i wouldnt recommend any other
programming physical book for C than
o'reillys excellent practical C programming
3rd edition ....as far as learning C is
concerned

it has excellent coverage and well paced
coherent chapters that should get you programming
in no time

i highly recommend you learn also
about embedded systems as ...the psp
is one :P

you can find o'reillys book at this link for purchase
http://www.amazon.com/exec/obidos/tg/detail/-/1565923065/qid=1131488909/sr=8-2/ref=pd_bbs_2/103-4957295-5864647?v=glance&s=books&n=507846

also the best place to learn about psp programming
is of course in the PSPSDK sources ;)
these guys have done a unprecedented excellent
job with the tools and info you need to get your
own code to run on psp ....so get to know your sdk
properly and read all headers that you will be using
they come with excellent comments to further
let you understand the functions and structures
that they contain

and lastly good luck in your studies
the best advice is to read ....that is all you need ;)
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Wed Nov 09, 2005 4:05 pm    Post subject: Reply with quote

i like this site: http://www.norvig.com/21-days.html
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group