User mode and Kernel Mode

This is a discussion on User mode and Kernel Mode within the Linux Programming forums, part of the Platform Specific Boards category; What does this mean -: I had to make a few changes to a C++ header file that runs in ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    8

    User mode and Kernel Mode

    What does this mean -:

    I had to make a few changes to a C++ header file that runs in kernel mode. And after making the changes, I have to compile that header file in user mode. What does it mean?

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    You don't compile header files. Header files are included in .cpp files which are compiled.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    Right, I made a few changes in the header file. So now I have to compile this in usermode ..how do i do that?

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    Umm, with the gcc/g++ program?

    Do you know how to compile a program? Where exactly are you stuck?
    If you understand what you're doing, you're not learning anything.

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    how am i supposed to compile in user mode ..wat does this mean? write a makefile and then compile?

  6. #6
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    makefiles just simplify the job of compiling complicated multi-file projects.

    g++ myprog.cpp is adequate to compile a program.
    If you understand what you're doing, you're not learning anything.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    How about telling us where your instruction come from?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

  9. #9
    Registered User
    Join Date
    Aug 2006
    Posts
    8
    I guess my doubt was useless. User mode is the normal compiling ..and its the kernel mode compilation thts different.

  10. #10
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Quote Originally Posted by learner01
    I guess my doubt was useless. User mode is the normal compiling ..and its the kernel mode compilation thts different.
    There is no such mode as "kernel mode compilation". "User mode compiling" is when a regular user is compiling (not root). You could still compile the program under root, as well. And show us what program you're trying to compile, and we may be able to help you better.

    If you're editing a file that's to be compiled into the kernel, edit the file, and then compile the kernel the way you normally do:
    http://www.freeos.com/articles/2589/
    Last edited by joeprogrammer; 08-10-2006 at 08:22 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. User mode and Kernel mode
    By learner01 in forum C++ Programming
    Replies: 7
    Last Post: 08-09-2006, 02:38 PM
  2. Programming RIP2 with kernel routes table
    By jpablo in forum Linux Programming
    Replies: 1
    Last Post: 04-22-2006, 11:26 AM
  3. Entering Kernel Mode
    By Lionel in forum Windows Programming
    Replies: 1
    Last Post: 07-05-2005, 07:58 PM
  4. Kernel mode
    By /Muad'Dib\ in forum C++ Programming
    Replies: 2
    Last Post: 06-02-2004, 08:36 AM
  5. kernel/user mode
    By rohit in forum Linux Programming
    Replies: 1
    Last Post: 07-03-2002, 10:37 PM

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