What are the different registers used by the C++ compiler in a program? What is the difference between SP and FP? If possible please point me to some detailed reference docs. Curious to know the underlying things happening in a compiler. Is it possible to view these registers during the execution of a program in Visual Studio. Appreciate your time and help. Thanks in advance, Light
VS C++汇编者所使用的不同处理器登记册是什么?
原标题:What are the different processor registers used by the VS C++ compiler?
问题回答
You can ask compiler to output the assembler code it generates from your sources, it s /FA and /Fa compiler command line arguments you re looking for: msdn link to /FA compiler arg.
In run-time, when you re running your program under debugger, you can open a "registers" window, and see how the values change during the execution - it can be very useful sometimes. Here s how you do it: msdn doc about "registers" window
If you re going for more serious debugging, I d recommend investing some time learning to use this: debugging tools for windows instead of just using the built-in VS debugger.
回答你的问题取决于你正在规划的硬件。 每个加工家庭都有自己的结构,因此拥有自己的登记册。
http://en.wikipedia.org/wiki/X86_assembly_English"rel=“nofollow noreferer”>参引自Wikipedia。
这些问题令人费解。
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding