473,508 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

assembler design in C

hello friends,
i need to design a small assembler in C language.
but i donot know where to start.
what machine to take as the environment for assembler or should i make a
simulator also to run the assembly code in my assembler.
can anybody help in getting me started in this.
ashu

Nov 14 '05 #1
3 5157
In article <60******************************@localhost.talkab outprogramming.com>,
verma_ashu <it*****@yahoo.co.in> wrote:
:i need to design a small assembler in C language.
:but i donot know where to start.
:what machine to take as the environment for assembler or should i make a
:simulator also to run the assembly code in my assembler.
:can anybody help in getting me started in this.

You should impliment the assembler language described in Donald Knuth's
"The Art of Computer Programming", Volume 1.
--
"I want to make sure [a user] can't get through ... an online
experience without hitting a Microsoft ad"
-- Steve Ballmer [Microsoft Chief Executive]
Nov 14 '05 #2
Walter Roberson wrote:
verma_ashu <it*****@yahoo.co.in> wrote:
i need to design a small assembler in C language.
but i donot know where to start.
what machine to take as the environment for assembler or should i
make a simulator also to run the assembly code in my assembler.
can anybody help in getting me started in this.


You should impliment the assembler language described in Donald
Knuth's "The Art of Computer Programming", Volume 1.


That machine is obsolete, and DK is replacing it with MMIX, an up
to date machine. You can find a full description on his pages.
Look for fasc1.ps.gz on:

<http://www-cs-staff.stanford.edu/~knuth/taocp.html>

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #3
In article <42***************@yahoo.com>,
CBFalconer <cb********@worldnet.att.net> wrote:
:Walter Roberson wrote:
:> You should impliment the assembler language described in Donald
:> Knuth's "The Art of Computer Programming", Volume 1.

:That machine is obsolete, and DK is replacing it with MMIX, an up
:to date machine.

Cool!

But the OP would probably find the original MIX easier to impliment,
and the original MIX has the advantage of already having a truly excellent
prose description whereas the MMIX books are not out yet.

: You can find a full description on his pages.
:Look for fasc1.ps.gz on:

: <http://www-cs-staff.stanford.edu/~knuth/taocp.html>
--
"Meme" is self-referential; memes exist if and only if the "meme" meme
exists. "Meme" is thus logically a meta-meme; but until the existance
of meta-memes is more widely recognized, "meta-meme" is not a meme.
-- A Child's Garden Of Memes
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
2014
by: Morten Aune Lyrstad | last post by:
I wish to create my own assembly language for script. For now it is mostly for fun and for the sake of the learning, but I am also creating a game engine where I want this system in. Once the...
4
3803
by: Neil Morris | last post by:
Hi I would like to know what the standard way to write a custom C library that links to assembler code? The reason is that, apart of been curious, I would like to know what format the C language...
5
21179
by: Daniel Gackle | last post by:
Will Whidbey will include the ability to put inline assembler into C# code? I found a previous thread in which it was implied that a future version of .NET would support this....
2
1263
by: mclagett | last post by:
Can anyone please help me figure out why all of a sudden (even after many restarts of Visual Studio 2005 and reboots, etc) I am no longer able to set breakpoints in the disassembler window. I...
4
1781
by: scottrm | last post by:
I am fairly new to oo design and I am looking at developing an object oriented asp.net application which will be built on top of a relational database. I have read quite a bit of the theory but...
105
5229
by: Christoph Zwerschke | last post by:
Sometimes I find myself stumbling over Python issues which have to do with what I perceive as a lack of orthogonality. For instance, I just wanted to use the index() method on a tuple which does...
48
2583
by: Tony | last post by:
How much bloat does the STL produce? Is it a good design wrt code bloat? Do implementations vary much? Tony
12
1555
by: Peter Anthony | last post by:
There are times it would be good to be able to write assembly code to integrate with other VS languages, such as VS C++ .NET. For example, I might want to write a REALLY fast algorithm that does...
3
4317
by: =?ISO-8859-1?Q?Glenn_M=F8ller-Holst?= | last post by:
Hi! How do I get generated ARM assembler from this compiler: #arm-elf-gcc -dumpversion 4.2.0 #arm-elf-gcc -dumpmachine arm-elf kind regards,
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.