Sign in to follow this  
Kaycon11

Question about assembly programming

Recommended Posts

jbadams    25676
Firstly a small correction: you don't type into your compiler, you type into a text-editor (which is probably part of an IDE, or Integrated Development Environment). Your compiler may in some cases (it varies from language to language and even for different compilers for the same language) generate assembly from a higher level language (such as C) before passing it on to an assembler to generate machine-code/an executable. If you'd like to learn a bit more about this process, have a search for resources on "build process" or "program compilation/assembly".

Now, what you're talking about is generally referred to as inline assembly, the idea being that you'll probably write most of your program in your higher level language (C, C++, whatever) of choice but have a few sections written in assembly for speed or efficiency reasons (or perhaps just because you're trying it out for educational purposes). This is supported differently by different compilers (and isn't always possible), and you'll need to check the documentation of whatever you're using to see if and how it's supported. If you tell us which tool(s) you're using we may be able to offer more advice.


If you just want to write programs using pure assembly you could try a tool such as MASM or NASM.

Does that help?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this