Will the real int main() please stand up?

This is a discussion on Will the real int main() please stand up? within the Linux Programming forums, part of the Platform Specific Boards category; I have looked over the linux source code for a while now, and I, for the life of me, can't ...

  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, 04: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, 05: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-01-2003, 11:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21