Page 1 of 1

Questions about RAM and C

Posted: Tue May 30, 2006 5:29 am
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 :)

Re:Questions about RAM and C

Posted: Tue May 30, 2006 5:35 am
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)

Re:Questions about RAM and C

Posted: Tue May 30, 2006 1:48 pm
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.