Questions about RAM and C

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
SmartBoy

Questions about RAM and C

Post by SmartBoy »

Hello ...

first of all sorry for my bad English :)

1: I know when i open any programme it will store in RAM as code and the CPU execut it , my question is : the code which store in the RAM is binary code or assembly code ?

2: We know we can use C as low level language , this cause behaind use it for operating system programming , my question how i can learn programming in low level with C ? any good links/books ?

3: i am very sorry for this question :-X in fact , i am still don't know how i begin ? i know little C++ and i can write small programme in it , and i know very little ASM with FASM , i have Prof. Andy Tanenbuam's book (Modern OS) and i am still don't know how i can start ? i want understand operating system concept , then write my os and small OS for learn and fun , then unserdtand Linux kernel , any help in this subject please (how i can start) ?


thanks and again sorry for my bad English :)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Questions about RAM and C

Post by Solar »

1) Binary code.

2) There's (almost) nothing special about OS-level C programming. You don't have most of the C library at your disposal unless you write or port one yourself. You will have to code against the hardware instead of some API, but the difference isn't that big. And you'll have to get used to either ASM code modules or inline assembly, for those parts you cannot express in C (programming of I/O ports, the MMU etc.).

3) Read the Quick Linkz thread - the one with "read this before you post" written beside it. 8)
Every good solution is obvious once you've found it.
mystran

Re:Questions about RAM and C

Post by mystran »

Also click the "Mega-Tokyo.com" logo if you haven't done so yet, so you get to OSFAQ, which is likely to give you good answers now and in future.
Post Reply