confused problem

Discussion in 'C Programming' started by freegnu, Oct 10, 2006.

  1. freegnu

    freegnu Guest

    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
     
    freegnu, Oct 10, 2006
    #1
    1. Advertising

  2. freegnu

    Jordan Abel Guest

    2006-10-10 <egfrsm$2ee$>,
    freegnu wrote:
    > 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.
     
    Jordan Abel, Oct 10, 2006
    #2
    1. Advertising

  3. freegnu

    jmcgill Guest

    freegnu wrote:

    > 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?
     
    jmcgill, Oct 11, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Miller

    Confused and bewildered.

    DJ Miller, Jul 31, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    1,083
    DJ Miller
    Sep 4, 2003
  2. RichGK
    Replies:
    1
    Views:
    397
    SStory
    Jul 31, 2004
  3. Cobra Pilot

    Confused. Need Help!

    Cobra Pilot, Jul 22, 2003, in forum: Perl
    Replies:
    1
    Views:
    968
    Shawn Corey
    Jul 22, 2003
  4. freegnu

    confused problem

    freegnu, Oct 10, 2006, in forum: C++
    Replies:
    2
    Views:
    291
    Phlip
    Oct 10, 2006
  5. Deryck
    Replies:
    7
    Views:
    98
Loading...

Share This Page