Rockbox Development > Starting Development and Compiling

Complete Novice

<< < (2/2)

zajacattack:
If this is hijacking a thread, tell me, but wouldn't that logic lead to coding all of rockbox in assembly?

saratoga:

--- Quote from: zajacattack on April 15, 2008, 11:16:12 PM ---If this is hijacking a thread, tell me, but wouldn't that logic lead to coding all of rockbox in assembly?

--- End quote ---

No, because most code doesn't not actually impact performance:

http://en.wikipedia.org/wiki/Ahmdal%27s_Law#Speedup_in_a_sequential_program

Generally assembly is reserved for code that is performance critical enough to motivate its use.

nls:
To start hacking rockbox, the following secion in the wiki is pretty helpful
http://www.rockbox.org/twiki/bin/view/Main/DocsIndex#For_Developers
it covers setting up your choice of development environment, svn etc.

@zajacattack
Assembler code is (as saratoga) said used in performance critical parts and parts that cannot be done in c (like some hardware setup). Assembler code is not portable between cpu architectures and is much harder to read/maintain for most people so it is only used where necessary.

Smallz:
I am also very interested in learning c. Is there a specific book or website that anyone can recommend to me?

nls:
IMHO the best way to learn is to start out with some short tutorials on the basics (most tutorials are pretty much the same) and then starting to read through real code looking up things as you go and changing stuff to see what happens.

Navigation

[0] Message Index

[*] Previous page

Go to full version