include file (.inc)

Discussion in 'Programmer's Corner' started by ke5nnt, Sep 30, 2009.

  1. ke5nnt

    Thread Starter Active Member

    Mar 1, 2009
    This is probably a newb question, but, I'm a newb so...

    what is an "include" file .inc? How is it generated?
  2. Papabravo


    Feb 24, 2006
    It is just another text file used in program development by many assemblers. It is helpful in systems with numerous modules to be able to include a common set of definitions so that bugs are not introduced by conflicting definitions. There can be a hierarchy of include files so that for example if there are multiple target processors, each module can include a file named "" which then figures out the appropriate definitions for the actual target processor, so that in the module you refer to things with a symbolic name which gets resolved by the assembler into an actual address.

    Clear or increasingly muddy?
  3. ke5nnt

    Thread Starter Active Member

    Mar 1, 2009
    Actually I was just coming over here to remove this thread. I figured it out poking around MPLAB IDE. Figured out what they're for. Thanks for the response though. There was some useful information in it that I wouldn't have known otherwise.
  4. dushuai

    New Member

    Sep 9, 2009
    Include file is head file,it is the definition of your C funtion,it is all in include file.
    needed by a C program.