Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hallo,

I need a C program which accepts assembly program and gives a corresponding binary program.
Posted
Updated 1-Dec-11 4:27am
v3
Comments
André Kraak 1-Dec-11 7:30am    
DO NOT SHOUT when asking a question. When you use all capital letters it is seen as shouting on the Internet and considered rude. Next time when posting a question please use proper capitalization.
idrees11 1-Dec-11 10:12am    
thank u for sugestion.
Mehdi Gholam 1-Dec-11 8:28am    
Do you want a compiler?
idrees11 1-Dec-11 10:15am    
thanks,I just want c program which accepts assembly program and converts it into binary,not compiler.it is just an project work.(for Ibm360).
Yvan Rodrigues 1-Dec-11 10:25am    
You really should have mentioned the IBM 360 part since this is predominantly a Windows site.

This is called an assembler. An assembler converts mnemonics and opcodes to binary machine language.

An assembler targets a specific microprocessor or microcontroller, so the one you need will depend on the processor on which the code needs to run.

If I assume you're targeting Intel x86 processors for DOS or Windows, you want an assembler like MASM32[^].
 
Share this answer
 
Comments
Albert Holguin 1-Dec-11 9:41am    
Must have his google access blocked, +5
Sergey Alexandrovich Kryukov 1-Dec-11 11:03am    
Not only you did understand the question which OP does not really understand, you even answered. :-) My 5.
--SA
If you want an API to do it, you can use a just in time API.
https://developer.mozilla.org/En/Nanojit[^]
http://code.google.com/p/asmjit/[^]
http://code.google.com/p/blitjit/[^]
These are a few examples of the program.
 
Share this answer
 
Comments
Yvan Rodrigues 1-Dec-11 10:19am    
Neat.
Sergey Alexandrovich Kryukov 1-Dec-11 11:05am    
I like the answer, my 5. Don't you think it's unlikely could be used by someone asking this question? A person who did not know what's Assembler...
--SA
BrainlessLabs.com 1-Dec-11 11:33am    
Well I interpreted the question differently, I thought he wanted something like a just in time. My bad.
If it's for an IBM 360 that's quite a different tool that you need :)

There are two assemblers depending on which assembly you use: http://en.wikibooks.org/wiki/360_Assembly/360_Assemblers[^]

There are decades of books on 360 assembly.
http://en.wikibooks.org/wiki/360_Assembly[^]
IBM 360 books on Amazon[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900