Assmbler implementation using C

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2007
Posts: 5
Reputation: amitbhat is an unknown quantity at this point 
Solved Threads: 0
amitbhat amitbhat is offline Offline
Newbie Poster

Assmbler implementation using C

 
0
  #1
Aug 4th, 2007
Hi Techis...
I am given an assignment of writing a C program which behaves as assembler. That is implementing assmbler using C. I ll have set of assemply statements. I need to convert those into the machine equivalent binary representation. I ll have two data structures to keep track of symbols and the operation code. These data structures need to be implemented using hash table technigue ...
Now i am stuck with the coding part of it. First is that how to convert the stuff into binary representaion and the hash table in C. Can anybody help in this?? I searched here , i cud not find. If i have missed any post related to this, pls let me know.

Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 170
Reputation: TkTkorrovi is on a distinguished road 
Solved Threads: 11
TkTkorrovi's Avatar
TkTkorrovi TkTkorrovi is offline Offline
Junior Poster

Re: Assmbler implementation using C

 
0
  #2
Aug 7th, 2007
For such things, look sometimes at freashmeat or SourceForge, there are many c programs, you likely can find there examples about whatever you are going to do. For example, Simple Generic Assembler http://sourceforge.net/projects/sgasm This is a very simple assembler, seemingly made also without yacc or bison, written in c.
Knowledge is regarded by the fool as ignorance, and the things that are profitable are to him hurtful. He liveth in death. -- Thoth the Atlantean
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 5
Reputation: amitbhat is an unknown quantity at this point 
Solved Threads: 0
amitbhat amitbhat is offline Offline
Newbie Poster

Re: Assmbler implementation using C

 
0
  #3
Aug 9th, 2007
I looked into it. But could not get anything out of it. Planning to write manually . I jst need a C program which implementing hash table. for time being we ll forget abt the assbler implementation.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC