Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-20-2006, 12:17 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Question Difference between Userland programming and Kernel Programming..

What are the Differences between userland programming and the kernel programming?Like,Why the kernel can't use the C libraries or the floating point issues or even the memory (paging) issues....
Old 02-20-2006, 12:26 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
To quote again from "Linux Kernel Development", Robert Love (as I did in your previous question):
Unlike a user-space application, the kernel is not linked against the standard C library (or any other library, for that matter). There are multiple reasons for this, including some chicken-and-egg situtations, but the primary reason is speed and size...
And again from the same book:
Unlike user-space, the kernel does not have the luxury of seamless support for floating point because it cannot trap itself. Using floating point inside the kernel requires manually saving and restoring the floating point registers, among possible other chores. The short answer is: Don't do it; no floating point in the kernel.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between ch and 'ch' - C programming indian Programming 3 09-30-2005 11:32 AM
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
whats difference between OT and GTK programming cranium2004 Programming 1 03-04-2005 10:40 PM

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration