Compiling Source Code?

Reply

Join Date: Oct 2006
Posts: 26
Reputation: bnrup is an unknown quantity at this point 
Solved Threads: 0
bnrup bnrup is offline Offline
Light Poster

Compiling Source Code?

 
0
  #1
Nov 12th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,408
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1468
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Compiling Source Code?

 
0
  #2
Nov 12th, 2006
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.

  1. int foo()
  2. {
  3. _asm
  4. {
  5. // put your assembly code here
  6. }
  7. }

>>you need MS Visual Studio to compile it
no you do not need Visual Studio. There are lots of free assemblers.
Last edited by Ancient Dragon; Nov 12th, 2006 at 10:24 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,187
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 533
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Compiling Source Code?

 
0
  #3
Nov 12th, 2006
if its c++ code use something like bloodhsed dev c++
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 26
Reputation: bnrup is an unknown quantity at this point 
Solved Threads: 0
bnrup bnrup is offline Offline
Light Poster

Re: Compiling Source Code?

 
0
  #4
Nov 12th, 2006
Originally Posted by Ancient Dragon View Post
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.

  1. int foo()
  2. {
  3. _asm
  4. {
  5. // put your assembly code here
  6. }
  7. }
>>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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,408
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1468
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Compiling Source Code?

 
0
  #5
Nov 13th, 2006
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.
Last edited by Ancient Dragon; Nov 13th, 2006 at 7:45 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC