| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Dr.Disrespect Grandmaster Cheater
 
 ![]() Reputation: 3 
 Joined: 17 Feb 2016
 Posts: 526
 
 
 | 
			
				|  Posted: Mon Jun 06, 2016 6:45 pm    Post subject: Assembly language question. |   |  
				| 
 |  
				| Is it correct to say that everything that can be done in C, C++ or in anything other programming languages can also be done in assembly language? 
 Such as timer, list(Python), etc.
 
 Sorry for my English.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Tue Jun 07, 2016 12:44 am    Post subject: |   |  
				| 
 |  
				| Yes. Everything done in a high level language such as C/C++ etc. is compiled down to assembly / machine code. _________________
 
 - Retired. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr.Disrespect Grandmaster Cheater
 
 ![]() Reputation: 3 
 Joined: 17 Feb 2016
 Posts: 526
 
 
 | 
			
				|  Posted: Tue Jun 07, 2016 3:15 pm    Post subject: |   |  
				| 
 |  
				|  	  | atom0s wrote: |  	  | Yes. Everything done in a high level language such as C/C++ etc. is compiled down to assembly / machine code. | 
 
 Thanks for the reply. If I have a piece of C++ code, is there a way to see the complied version(assembly) of it in Visual Studio?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| hhhuut Grandmaster Cheater
 
  Reputation: 6 
 Joined: 08 Feb 2015
 Posts: 607
 
 
 | 
			
				|  Posted: Tue Jun 07, 2016 3:16 pm    Post subject: |   |  
				| 
 |  
				| If you set a breakpoint that gets hit, you should be able to open some CPU-window which also shows you a disassembler, although I can't tell you where exactly you'll find that option ... |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr.Disrespect Grandmaster Cheater
 
 ![]() Reputation: 3 
 Joined: 17 Feb 2016
 Posts: 526
 
 
 | 
			
				|  Posted: Tue Jun 07, 2016 3:55 pm    Post subject: |   |  
				| 
 |  
				|  	  | hhhuut wrote: |  	  | If you set a breakpoint that gets hit, you should be able to open some CPU-window which also shows you a disassembler, although I can't tell you where exactly you'll find that option ... | 
 
 Thanks, I will try to find something on youtube.
   |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| ulysse31 Master Cheater
 
 ![]() Reputation: 2 
 Joined: 19 Mar 2015
 Posts: 324
 Location: Paris
 
 | 
			
				|  Posted: Tue Jun 07, 2016 4:33 pm    Post subject: |   |  
				| 
 |  
				| For a breakpoint that gets hit simply click the margin in msvc (click at the left of the c++ line codes you wrote), a red dot will appear, when you start the debug of your program through MSVC compiler, it will break on the dot (assuming that the program flow goes there). Although, for what you want to achieve I'd recommend that you merely activate the ASM output from msvc, to do so :
 Open the property panel of your  project (Project -> property),
 go to Configuration Properties, C/C++, OutputFiles, Assembler Output (by default it will be "No Listing") set it to "Assembly with source Code (or machine but i'd recommend source) and validate, now compile again and your folder will hold an asm file.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr.Disrespect Grandmaster Cheater
 
 ![]() Reputation: 3 
 Joined: 17 Feb 2016
 Posts: 526
 
 
 | 
			
				|  Posted: Tue Jun 07, 2016 5:25 pm    Post subject: |   |  
				| 
 |  
				|  	  | ulysse3131 wrote: |  	  | For a breakpoint that gets hit simply click the margin in msvc (click at the left of the c++ line codes you wrote), a red dot will appear, when you start the debug of your program through MSVC compiler, it will break on the dot (assuming that the program flow goes there). Although, for what you want to achieve I'd recommend that you merely activate the ASM output from msvc, to do so :
 Open the property panel of your  project (Project -> property),
 go to Configuration Properties, C/C++, OutputFiles, Assembler Output (by default it will be "No Listing") set it to "Assembly with source Code (or machine but i'd recommend source) and validate, now compile again and your folder will hold an asm file.
 | 
 
 Thank you so much for the help.
   |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |