Custom Search
Join the PC homebuilding revolution! Read the all-new, FREE 200-page online guide: How to Build Your Own PC!
NOTE: Using robot software to mass-download the site degrades the server and is prohibited. See here for more.
Find The PC Guide helpful? Please consider a donation to The PC Guide Tip Jar. Visa/MC/Paypal accepted.
Results 1 to 2 of 2

Thread: Written Code to Assembly language

  1. #1
    Join Date
    Jan 2002
    Annapolis Valley Nova Scotia

    Written Code to Assembly language

    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??

  2. #2
    i didnt understand your question entirely, but i will try my best to answer ...

    1. Say, you wrote a program named traffic.c in C language...
      traffic.c contains the 'code/text'
    2. 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)
    3. Once you compile a proggie, it gets converted into an executable.
      for ex- traffic.c will be converted to traffic.exe
    4. Now if you want to run the program, u click on traffic.exe....
      traffic.exe gets loaded into RAM from harddisk and is executed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts