Solved

386 assembler C or C++ source code needed

Posted on 2002-07-08
4
205 Views
Last Modified: 2010-04-15
I have a C++ program that would benefit by having a built in assembler. By which I mean it would take a string (or file) as input and generate machine code op-codes.

I don't need fancy linkers, it would just generate small segments of executable code, it would need to cope with simple labels (forward and backward references)

Ideally C or C++ source code which could be incorporated into my program.

I have searched for source code to no avail. Oh, it must run on Windows (Linux source code not suitable) using MS C++ compiler.

Thanks
Ian
0
Comment
Question by:icd
  • 3
4 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 7141287
>> by having a built in assembler

Why don't you just run e.g. the GNU assembler 'seamlessly' from your app? This one is also available for Win32 and is OSS, BTW.
0
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 7141294
Oh, and there is of course NASM that comes with source code: http://nasm.sourceforge.net/
0
 
LVL 5

Author Comment

by:icd
ID: 7141450
Interestingly I just found the NASM assembler and so far it seems to do what I want. I think I can just bring in the source code modules I need and build them into my application.

I had not thought of the GNU assembler. I will look at it but I don't want to have external exe files if I can help it which I suspect is what you are referring to.

I had just come back here to delete my question, but I see I will have to award you the points now :)
0
 
LVL 86

Expert Comment

by:jkr
ID: 7182920
Thank you! :o)
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
In desperate need of help 8 132
Want to delete all my personal data 13 138
Passing a array as parameter - C 2 84
Windows Updates failing due to Diskpart not configured correctly 8 106
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now