English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I make C++ programs. Now i want to see what actually run in the machine. How does the system handle variables and function calls.

2007-03-17 22:17:54 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

if you are using the gcc compiler then use the -S flag, this will generate an Assembly language program from your code.
If you are not using gcc I recommend the CodeWarrior IDE, that enables to debug the code in mixed mode (assembly + source) on the same window.

2007-03-18 00:23:14 · answer #1 · answered by eyal b 4 · 0 0

if you are using gcc just use
gcc -s file.c (it will create assmebly program)
if you are using windows, just download some diassembler and dissemble the exe file to see how the assembly code look like

2007-03-18 00:20:12 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers