Thread: Will the real int main() please stand up?

  1. #1
    lost in the stack...
    Join Date
    Apr 2004
    Posts
    11

    Will the real int main() please stand up?

    I have looked over the linux source code for a while now, and I, for the life of me, can't find the central 'int main(int argc, char *argv[])' file in it. I have even done a grep routine and piped it all to a text file for later looking over. There's a lot of matches!

    I'm just dying of curiosity as to where the heart of the whole kernel source is. I could look some more, but just thought I would post the question to this forum. Tips anyone?
    Last edited by lo_tek; 04-12-2004 at 01:42 PM.

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    It doesn't exist. The kernel is mdoular and the bootloader loads it and doesn't have need one. There is no real heart of the linux kernel it is all modular(composed of many source files) think about it; do you want a 2 gig kernel or a kernel that is dramatically less? Do you need multi-threading source code in yours. Probably not, but some people do.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing Program
    By Max_Payne in forum C++ Programming
    Replies: 21
    Last Post: 12-21-2007, 05:34 PM
  2. newbie needs help with code
    By compudude86 in forum C Programming
    Replies: 6
    Last Post: 07-23-2006, 08:54 PM
  3. Switch/case Problems (long code in post)
    By Wraithan in forum C++ Programming
    Replies: 2
    Last Post: 12-01-2005, 06:40 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-02-2003, 12:26 AM