PDA

View Full Version : Written Code to Assembly language


atc_traffic856
03-13-2003, 08:36 AM
I am stuck on a question from my courses, maybe you can help and possibly give me some links as to where I may research it.
My question: Is after you write a program using whatever code language, how does the Computer change that code into machine language to go to Ram or the cpu to run the necessary devices? I understand all the basics of Bin and Hex but where I am stuck is the procedure or if you will, the link between the written code in the program, the actual text of it is then changed to binary??

rahulkothari
03-13-2003, 01:04 PM
i didnt understand your question entirely, but i will try my best to answer ...

Say, you wrote a program named traffic.c in C language...
traffic.c contains the 'code/text'

Now you have to compile the program using a compiler.
A compiler is a software which converts your 'code/text' into machine language (0s & 1s)

Once you compile a proggie, it gets converted into an executable.
for ex- traffic.c will be converted to traffic.exe

Now if you want to run the program, u click on traffic.exe....
traffic.exe gets loaded into RAM from harddisk and is executed.