Results 1 to 6 of 6

Thread: Intermediate Files?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Intermediate Files?

    I see these with all kinds of source codes that I look at, what are they for?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Intermediate Files?

    Intermediate files are what is produced once the preprocessor has run its course. They are files which have their include files loaded in, macros replaced, etc. So, say I have this:

    Blah.h
    Code:
    class Blah {
        int myInt;
    };
    ..and main.cpp
    Code:
    #include "Blah.h"
    
    #define ZEROLOLZ 0
    
    int main()
    {
        return ZEROLOLZ;
    }
    main.i (intermediate file), is this:
    Code:
    class Blah {
        int myInt;
    };
    
    int main()
    {
        return 0;
    }
    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Intermediate Files?

    So they are pretty much useless and should be deleted, right?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Intermediate Files?

    Quote Originally Posted by Bobalandi
    So they are pretty much useless and should be deleted, right?
    Pretty much, yep. They are interesting to have a look at though.. because not all preprocessors act in the same way.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Intermediate Files?

    oo I think I will look, just wondering, but is it possible to incorperate them into other programs?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  6. #6
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Intermediate Files?

    Of course. They're still code.. they're just ALL code. If you include a file.. say, stdio.h, into main.cpp, main.i will have all of stdio.h's code. So, things can get pretty big..

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width