954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Compiling Source Code?

I know absoulutely nothing about compiling source code other than you need MS Visual Studio to compile it. I have the express (free) version of it, can you compile in this version?

bnrup
Light Poster
26 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

If you are talking about assembly code -- yes but it must be in-line assembly code. Here is an example C function with inline assembly.

int foo()
{
   _asm
   {
       // put your assembly code here
   }
}


>>you need MS Visual Studio to compile it
no you do not need Visual Studio. There are lots of free assemblers.

Ancient Dragon
Retired & Loving It
Team Colleague
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342
 

if its c++ code use something like bloodhsed dev c++

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,820
Solved Threads: 600
 

If you are talking about assembly code -- yes but it must be in-line assembly code. Here is an example C function with inline assembly.

int foo()
{
   _asm
   {
       // put your assembly code here
   }
}
>>you need MS Visual Studio to compile it no you do not need Visual Studio. There are lots of free assemblers.


So what file do I need to open within the source code? How do I save the compiled version?

bnrup
Light Poster
26 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

First, this is not the right board to be discussing C and C++ topics. There are several tutorials , the topic is just too complicated to explain fully here.

You might be better off getting free masm assembler and use Notepad to write your programs. I hope you are studying an Intrudoction to Assembly book because you will definitely need it.

Ancient Dragon
Retired & Loving It
Team Colleague
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You