Thread: Help understanding structuring multiple .c and .h files (intial linker process)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    Quote Originally Posted by anduril462 View Post
    The fact that several companies do something a particular way doesn't mean it's a good thing.
    I was just pointing out that it's a common practice. In my opinion and that of my co-workers at those companies, it's a practical solution to using common include files with the source files that define variables as well as the source files that use those variables.

    #define VOL volatile
    This one I don't get, unless the goal is to reduce the number of characters to type volatile, or perhaps to use uppercase VOL as a replacement for the keyword volatile. I can't imagine a situation where volatile would be optional depending on the source file. Normally volatile variables are those updated in interrupt routines or updated by a thread in a multi-threaded environment.
    Last edited by rcgldr; 06-11-2013 at 07:06 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Automatic variables default intial value
    By chibi.coder in forum C Programming
    Replies: 5
    Last Post: 12-20-2011, 01:53 AM
  2. Understanding the Linker Map File
    By Hops in forum C Programming
    Replies: 0
    Last Post: 01-14-2010, 05:40 PM
  3. unable to process multiple files
    By ss_ss in forum C Programming
    Replies: 4
    Last Post: 05-28-2009, 02:04 AM
  4. Multiple theads to process video files
    By matth in forum C++ Programming
    Replies: 0
    Last Post: 07-15-2005, 02:55 PM
  5. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 02:41 AM