confused problem

F

freegnu

0340
0341
0342/** main function */
0343 int main(int argc,char *argv[]) {
int i, j, xferSize=-1, debug_level=1, nLoopCount = 0,
nLoopRepeat = 1;
int bUserStop = FALSE;
int bLoopback = FALSE, enable_OSD = FALSE;
0347 int bSkipDL = FALSE, bLogFile = FALSE, bI2CTable = TRUE, bTVTuner =
FALSE;
char *config_overrides[128]; // up to 128 different
parameters
int num_overrides = 0;
U32 pMode = 0xffff;

0352 BOOL do_mar = FALSE, fixed_pattern = FALSE, set_135mhz = FALSE,
set_162mhz = FALSE;
BOOL disable_config = FALSE;
TVTunerSelection tv_tuner_selection;
VW2010Impl vw2010hw; // actual hardware
implementation
IVwebHW *chip_interface = &vw2010hw; // virtual
interface to the hardware
printVersion(chip_interface);
if (argc < 3) {
printUsage();
return SUCCESS;
}
........
}
i use gdb debug the program , i find the process flow by
0347->0341->0347->0352->0341->0352 , it seems disordered, im really puzzled
 
J

Jordan Abel

2006-10-10 said:
i use gdb debug the program , i find the process flow by
0347->0341->0347->0352->0341->0352 , it seems disordered, im really puzzled

Optimization, i.e. the compiler puts code in whatever order it feels
like (which is legal as long as it works the same way in the end) so it
can run faster.
 
J

jmcgill

freegnu said:
i use gdb debug the program , i find the process flow by
0347->0341->0347->0352->0341->0352 , it seems disordered, im really puzzled

What order did you expect it to be in, and why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top