• 0

Learning C (Basically for working with Kernals and everything really comple


Question

What is the best book or site where I could learn every aspect of "C"? I've decided next summer that I want to live a little more custom and I want to restructure the way I work. I'm a quick, but thorough person, and I'd like to work with the Linux Kernal from scratch.

Recommended Posts

  • 0

You might want to start with an introductory book to C/C++ (I would suggest C++). Then, you need to build your way up by reading more advanced books. However, reading is not the end to this. Learning a programming language also depends on using it frequently. You will build up experience but that needs patience. Try to get real world jobs that would force you to impliment what you have learned from reading. Be patient. It takes so much time. I would say years. Good luck :)

  • 0

Stackoverflow.com has a good list of books: http://stackoverflow.com/questions/562303/the-definitive-c-book-guide-and-list

Do you have any prior programming experience or knowledge of how operating systems work? Being able to make sense of the Linux kernel will take more than just a working knowledge of the C language.

  • 0

Not exactly. That's why I'm starting to read Linux From Scratch and other possible references to get a possible understanding of how it works. I'm only being experimental. Thanks for the link by the way.

  • 0
  • 0

I do love these threads where someone comes in, with little or no prior programming experience, and sets themselves ridiculously lofty goals such as "learning every aspect of C so I can work with the kernal from scratch", and expects a single book or a short timescale.

Don't get me wrong, I applaud people's eagerness to learn, but assuming that it can be done from one book over a short period of time...

It kinda ****es on the 4 years at uni and over 15 years in industry that I (and others) have, and I still don't know "every aspect" of anything.

  • 0

I do love these threads where someone comes in, with little or no prior programming experience, and sets themselves ridiculously lofty goals such as "learning every aspect of C so I can work with the kernal from scratch", and expects a single book or a short timescale.

Don't get me wrong, I applaud people's eagerness to learn, but assuming that it can be done from one book over a short period of time...

It kinda ****es on the 4 years at uni and over 15 years in industry that I (and others) have, and I still don't know "every aspect" of anything.

Amen.

  • 0

Amen.

I love threads like this,

First of all to be a Kernel Developer learn how to spell Kernel. You must have a good understanding of how a Operating System Kernel works, Right?

You say you want to work with the Kernel. Why? You have an idea for a Kernel App? Maybe a Firewall? Or Anti Virus/Malware Program that runs at the Kernel level?

You have this warped view of how you can pick up a C Book and then start writing Kernel Mode Applications that plug straight into the Kernel API. What OS are you going to be working with? Linux Maybe. Windows I doubt it. For obvious reasons...

  • 0

Not to be a Debbie Downer, but while learning the internals of an operating system and how to program at the kernel level is a lofty goal, it probably isn't something that you're going to learn in just a year, no less a summer. If you are just starting out with C and have very little understanding of how operating systems interface with hardware (or provide services to higher levels), its likely to be extremely difficult. If you are really serious about it, you can do it, but don't expect it to be fast or easy.

I am a meticulous and thorough person, like you claim to be. While it has helped me gain a deep understanding of some subjects, it certainly has not made me fast. I started learning C++ 7 years ago, C 4 years ago, GNU/Linux 3 years ago, and kernel level programming within the last year. While it is something that I am very interested in, I'm still not at the point where I could write my own kernel module from scratch. I understand just enough to read Linux kernel code, debug it (to some extent), and patch it where necessary. I watch the Linux commit logs and mailing lists and hope to eventually learn enough to be able to write my own kernel module from scratch -- but I'm not there yet.

In my experience, most descent programmers have a healthy ego: that's why programmers tend to suck at giving time estimates. You could learn kernel programming faster than me. In fact, I'm sure that many others have. I'm not the best programmer out there -- I'm probably not even above average -- but I am thorough. Don't give up because you can't learn it as fast as you would like. Start at an upper level (such as C++ desktop application development) and work your way down (to kernel level). If you really love it, stick with it: you will get there eventually.

  • 0

Take a class. Learning C by yourself is like picking your nose in public- you can do it, it isn't pretty tho. :laugh:

Take it from somebody that tried...

If you just want to screw around with a simple OS, get virtual box and play with this:

http://mikeos.berlios.de/

  • 0

I said "I'm only being experimental.", don't be so hard on me. Sorry I spelled it wrong, I was typing quick and was in a hurry at the time.

I'm aware of how hard it really is, I was so much in interest about a custom OS since before Codename "Longhorn". Not even, ever since I was once a member in the old JoeJoe forum.

Other than that, I just want to start learning C because I want to live a little custom throughout the next few years and experience new things since I grew up a Web Developer.

  • 0

I don't think that anyone was overly harsh on you. There are some very helpful and constructive comments above. Its not that we are trying to discourage you, its just that some of us with more experience (and I'm not claiming to be one) see the warning signs and are trying to warn you. Although they haven't posted much in this thread, Dr_Asik and n_K in particular have extensive experience: listen to them.

  • 0

I do love these threads where someone comes in, with little or no prior programming experience, and sets themselves ridiculously lofty goals such as "learning every aspect of C so I can work with the kernal from scratch", and expects a single book or a short timescale.

Everyone when they first start programming usually ask ambisous questions like this, I've been programming for 17 years and I vagually remember when I first started programming I posted on some board "I want to develop my own operating system how do i do it?" I personally actually like when people ask questions like this, it shows a great level of ambition in people, that I think is personally lacking in to many people.

It kinda ****es on the 4 years at uni and over 15 years in industry that I (and others) have, and I still don't know "every aspect" of anything.

Why would you want to know every aspect of everything? Over 17 years I've specialized in a lot of different areas, and I can tell you over the years it all starts to blur together and as I'm sure your aware with every new thing you learn the more cynical you get :p.

First of all to be a Kernel Developer learn how to spell Kernel.

Lol seriously get over yourself : ).

I'm aware of how hard it really is

You have no idea how difficult and time consuming this is going to be.

Lets start off by saying, you want to do something that is really boring and what you want to do has very little pay off at the end of the day. A kernel is really the unspoken "hero" of any modern operating system, its basically a abstraction layer between the hardware, memory, and software. There are just too many concepts there that you need to know that you don't know, and you won't be able to learn all of the stuff before you get bored and give up.

On the off chance you actually coded a kernel that was a half assed best thing you could come up with, no one will use because of a few things.

  1. There is a good chance it will be a insecure nightmare. No beginner programmer can even fathom how to code something securely because you don't know how a computer really works.
  2. You won't have any drivers, so your kernel couldn't fully use key devices like the graphics card. Unless you force all of your programmers to code there stuff for every single device out there(anyone remember the DMX sound engine? :p ).
  3. IHV - Indepedent hardware vendors half ass their driver code to the point that all of their drivers(even if you code a 100% complient linux kernel) that won't work under your kernel besides you did something different than whats in the main stream linux kernels.

I would steer clear of any type of kernel development. Let us assume that you are superman and can learn everything on the job. You can still do operating system level coding without having to touch the kernel stuff, you can basically grab a unix(not LINUX, but UNIX) kernel and try and build something off of that. But again this is all very dry and boring stuff.

Frankly if you have very little coding experience I would basically start else were(if your favorite game has public source code out there, I would do some basic mods for that first). You want a challenge that not to many people are doing that you can learn how to think while learning how to program, hell try some kinect stuff. Focus your ambition in a area that you can get a decent pay off at the end of day.

its just that some of us with more experience (and I'm not claiming to be one) see the warning signs and are trying to warn you

A lot of professional developers with years of experience always try and bite off more than they can chew(DNF anyone?), its a human trait to always to do something AWESOME and BAD ASS :). You will notice really quickly why programmers are hid away in isolated areas in a company that no body goes to; were arrogant, personality challenged individuals.

18188.strip.gif

Don't stop programming because of some of stuff on here, and if you continue programming you will soon end up like us...its inevitable.

  • 0

Yea, but it's not like I'm trying to make an OS to replace a part of my life here. :p

I just want to know what it's like to work on a new OS, I have family that can definitely code like crazy and I'm just the youngest who would love to understand the concepts. :) If anything, being experimental is what should count, right? That's what I've been trying to say here. I'm using the Linux kernal to start off with and reading documents of LFS and such to know where to start. But I never said I was starting now was I? I mean shoot, reading, examining, etc to even code basic programs for starts are what I'm actually trying to do before I go to something even more complex. I'm just trying to create steps in my journey as a 19 year old who's been trying to code at all since 12 years old starting with html/css php & javascript. Come on guys, try to boost spirits at the same time as giving warning shots! :D

  • 0

Yea, but it's not like I'm trying to make an OS to replace a part of my life here. :p

I just want to know what it's like to work on a new OS, I have family that can definitely code like crazy and I'm just the youngest who would love to understand the concepts. :) If anything, being experimental is what should count, right? That's what I've been trying to say here. I'm using the Linux kernal to start off with and reading documents of LFS and such to know where to start. But I never said I was starting now was I? I mean shoot, reading, examining, etc to even code basic programs for starts are what I'm actually trying to do before I go to something even more complex. I'm just trying to create steps in my journey as a 19 year old who's been trying to code at all since 12 years old starting with html/css php & javascript. Come on guys, try to boost spirits at the same time as giving warning shots! :D

Its just not going to give you the e-nerd-boner your expecting, if you want to try awesome,difficult, do some Kinect work. Better pay off and the non programmers in your family will give you the ooo and ahhh's that your looking for. If you got a something working in terms of a kernel, or even if you added some feature to a existing kernel and you showed it to your family, the non technical individuals will go "Oh honey thats nice" and pat you on the head. The technical members of your family will go "seriouslly? you wasted your time on that?".

I'm not trying to kill your spirits, i'm only trying to redirect your ambition into something that has a decent pay off at the end of the day.

If your hell-bent on doing this, try this first(humor me). Make a simple console application that prints out something if you enter in a value, and something else if you enter something else. Download a dis-assembler such as IDA pro, and figure out how to change your app so it prints the opposite thing WITHOUT CHANGING THE SOURCE CODE. A very basic thing you need to know is assembly, and the way I at least started assembly was actually modding Diablo 1 :/. Once you know assembly come back and ask us again what you should start next.

  • 0

A lot of professional developers with years of experience always try and bite off more than they can chew(DNF anyone?), its a human trait to always to do something AWESOME and BAD ASS :). You will notice really quickly why programmers are hid away in isolated areas in a company that no body goes to; were arrogant, personality challenged individuals.

Don't stop programming because of some of stuff on here, and if you continue programming you will soon end up like us...its inevitable.

Just to clarify, I'm not trying to claim that he shouldn't try. None of us would program like we do today if we didn't start somewhere. You're absolutely right: be ambitious. However, that is also somewhat dangerous, especially for a new programmer. If you expect something to be easier than it actually is because you don't understand the scope at the onset, it is somewhat discouraging and often leads to burnout. It would be negligent not to mention the possible side effects in addition to the major positives.

  • 0

I've always tested OS's and different projects in VMWare. Heck, the first time I ever worked with C was C# when I was around 15 years old. To this day I've yet to work with all that I can as far as coding from something as simple as a Linux command screen.

What do you guys expect me to do if I can't learn from mistakes? That's what makes us all developers, humans actually. :)

  • 0

I've always tested OS's and different projects in VMWare.

Downloading leaked builds of a OS doesn't quantify you as a tester; that's just like saying "I'm a game tester cause I download the Public Test version of Starcraft". Doing QA means you do a lot more than anything you did.

Heck, the first time I ever worked with C was C# when I was around 15 years old.

I started doing programming I was 7 and started professional programming(where I actually got a paycheck) at 15 :p, trust me you aren't special there are lot of people that started programming before college, and a lot like myself that do it at a professional level.

To this day I've yet to work with all that I can as far as coding from something as simple as a Linux command screen.

Listen people like myself here are just trying to tell you we have been were your at. I personally don't give a rats ass whether you do this or not. I don't give a damn about what you do : ), but what your asking for requires someone on here to type out a huge post that won't benefit you at all because A) no one could type everything you need to know in one post on here and B) once you start doing it...you will stop. I promise you...you will stop doing it.

Instead of getting frustrated at something that won't give you the pay off your expecting, do something that WILL benefit you.

Bottom line if you want to do this, do what everyone else has done before you...teach your self and figure it out. No one will type out all the stuff you need to know to do what you want to on here. No one....it won't happen :p.

  • 0

Never said I was testing leaked OS's.

Was never trying to be a computer developer at a professional level. I want a fully custom OS for personal use one day. I'm just a Web Developer, that's my main focus.

The 4th comment of this topic actually helped me with C.

I'm not asking for anyone to be my teacher, just resources are what I need.

  • 0

Never said I was testing leaked OS's.

You mentioned Longhorn :), and at any rate I'm sure the testing you did wasn't "testing" it was using whatever you were testing and hoping it didn't crash.

Was never trying to be a computer developer at a professional level. I want a fully custom OS for personal use one day. I'm just a Web Developer, that's my main focus.

Now I am going to scream at you, learning what you will during the time your spinning the wheels with this will apply to every programming challenge you can think of EXCEPT Web Design lol. The programming behind any type of scripting language requires a different type of thinking than coding in any of the major languages. Java accidently falls in this catagory :p but it is a script language.

What you need to focusing on to be a good web developer is UI design. Your way way way off base.

  • 0

Longhorn, as in the OS people had customized when Vista wasn't much of an option.

Longhorn was a design disaster, and would a case and point to your situation. Biting off more than you can chew leads to Longhorn/Vista : ).

I was a designer before I was a Web Developer.

Post some of your work.

  • 0

If you really want to give yourself a chance of understanding how the linux kernel works you'll need:

- expert skills in C

- expert skills in data structures and algorithms

- expert in computer architecture

- expert in operating systems

- expert with build systems and debugging tools

In other words you're looking at Computer Science or Software Engineering post-graduate level competence, with a particular focus on C and operating systems. That's several years of formal training. In fact, I do recommend you take CS or SE if you're really into programming. However, you'll have to start with much smaller and simpler projects. What you're asking is akin to "I want to learn everything in order to design a new type of space shuttle, and I have no prior experience in physics or mechanics". No one can answer that question except to point you towards basic physics and mechanics learning material, and tell you you won't be designing space shuttles any time soon.

In fact I don't suggest you start with C because AFAIK there's no really good introduction to programming that's also a good introduction to C. The best introductions to programming I know of exist for other languages:

C# : The Yellow Book : this is just the best intro to programming I've ever seen.

Java: Think Java : the "Think X" series is a very solid, well-paced introduction to computer science, complete with exercices, and they are available for a few different languages.

Python: Think Python

C++: Think C++

Python goes to great lengths to introduce non-programmers to programming: http://wiki.python.o.../NonProgrammers

Java accidently falls in this catagory :p but it is a script language.
Javascript is a script language perhaps? Not Java...
  • 0

In other words you're looking at Computer Science or Software Engineering post-graduate level competence,

As a side note make sure you go a school with a good curriculum, I can't tell you how many incompetent college computer science students I've interviewed that said they had a 4.0 gpa(which I beleived), but they were just stupid. Especially when it comes to something as complicated as this, be very careful where you go if you care enough to pursue this route.

Javascript is a script language perhaps? Not Java

You are correct, I missed typed. I always keep forgetting people actually used Java at one point : ), I always put Java Java next to Cobol in the "Languages that should have never existed category".

*Waiting for the hate mail*

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • PDF-XChange Editor 11.0.1.0 by Razvan Serea PDF-XChange Editor is a comprehensive PDF editor that allows you to create, view, edit, annotate, and digitally sign PDF documents with ease. With advanced features like OCR, document security, and PDF optimization, PDF-XChange Editor is a powerful tool for both personal and professional use. Whether you need to edit text, images, or links, or add comments, stamps, or watermarks, PDF-XChange Editor provides all the necessary tools to make your PDFs look perfect. Additionally, it supports a wide range of file formats, including PDF, XPS, and DOCX, making it easy to convert and share your documents. PDF-XChange Editor key features: Edit text and images in PDF documents Add and remove pages from PDF files Annotate and markup PDFs with comments, highlights, and stamps Use OCR to convert scanned documents into searchable text Create and fill out PDF forms Sign and certify PDF documents digitally Add and edit hyperlinks within PDFs Extract text and images from PDF files Batch process multiple PDF files at once Customize the interface to your preferences Work with multiple documents in tabs Convert PDFs to other formats such as Word, Excel, and HTML Use advanced redaction tools to permanently remove sensitive information Add customizable headers and footers to PDFs Merge multiple PDF documents into a single file Split PDF documents into multiple files Add watermarks to PDF documents Use the measurement tools to calculate distances and areas in PDFs ....and much more PDF-XChange Editor 11.0.1.0 changelog: Fixed a crash in the new Open/Save dialog box when creating a new folder in an unavailable network path. (49552) Fixed a rare/infrequent crash on some dynamic XFA forms after changing their field values. [installer] Fixed an issue where shortcuts were lost during an upgrade from the previous version. [installer] Fixed an issue preventing migration of serial keys during updates from version 10. Fixed the issues with the shell context menu after installation of version 11. Fixed the issue with filtering comments. (49478) Fixed the issue that caused "Error [IO subsystem]: Invalid access mode." when converting PDFs to MS Office formats. Fixed an issue with the context menu position on some multi-monitor systems. (48467) Fixed an issue with handling complex custom file filters, displayed by JS, in the new Open/Save Files dialog box. (49486) Fixed several issues with the new 'Select Folder' dialog box. (49505) Fixed an issue with the new custom 'Open File' dialog box when using double-click to open it. (49498) Fixed an 'infinite' loop/proliferation in the 'Open Files' and 'Manage Places' dialog boxes. (49526) Fixed an issue with handling the mouse wheel inside the document "Find" box. (49539) Fixed an incorrect behaviour in the 'Go back (Alt+Left)' button in the new Open/Save Files dialog box. (49510) Fixed an issue with the shortcut keys (Alt+Left/Right) after navigating via breadcrumb paths in the new Open/Save Files dialog box. (49554) [installer] Fixed an issue with redrawing the progress text in the EXE installers. Fixed the issue where a mouse click outside of the polyline/polygon context menu during annotation creation would cancel the annotation. (49475) We switched back to using the system Open/Save/SelectFolder dialog box by default, instead of using the new one, because some popular features such as the QuickAccess/Recent items are missing in the new version. These will be added in a future release. Replaced the 'Extension' column in the new Open/Save File dialog box with a more user-friendly 'Type' column. Also fixed some issues when handling the 'Show file extension' option. (49497) Added the ability to authenticate local network shares in the new Open/Save Files dialog box. (49557) Improved the handling of dates after 01.01.2030 in XFA files - now such dates are stored properly when set via the dropdown widget. Flags NoZoom and NoRotate are now respected for only a limited subset of annotations. Download: PDF-XChange Editor (64-bit) | Portable ~300.0 MB (Shareware) Download: PDF-XChange Editor (32-bit) | Portable ~200.0 MB Download: PDF-XChange ARM64 | 276.0 MB Download: PDF-XChange Portable @PortableApps.com | 97.0 MB View: PDF-XChange Editor Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Still 3x what it should cost. So, it seems the trick is to increase price by 6x so that a reduction in price back to 4x looks like a steal. "You savvy shoppers win again!" I'm glad I'm not in a desperate spot to actually even need this overpriced crap. Hopefully, it comes back down by the time for when (or if) I ever do.
    • Although AI is great and has it's use cases they likely have massively overhyped it and it has not delivered as per their expectations. I fully expect them to start saying the same things again when it does get to a certain level of intelligence!
    • Microsoft wants to end printer driver headaches with Windows Ready Print by Usama Jawad A few days ago, Microsoft released Windows 11 Experimental build 26300.8553, bringing a ton of enhancements such as Start menu customization, search improvements, Taskbar polish, and other minor UI tweaks. Another relatively major enhancement snuck deep within the change log was related to upgrades to the Windows printing experience. Now, Microsoft has shared more details about these benefits. For starters, Microsoft has renamed its Modern Print Platform to Windows Ready Print. The company believes that this name highlights its shift in strategy, which now focuses on modernizing, securing, and streamlining the printing experience for Windows devices. Some of the upgrades present in Windows Ready Print have already been seeded to customers and partners. This includes ending support for third-party printer drivers via Windows Update and transitioning towards the Internet Printing Protocol (IPP) and the native Windows IPP printer driver. In line with these changes, new printer installations will default to Windows Ready Print on eligible devices starting from July 2026. However, Microsoft recognizes that not all environments will be able to migrate to this platform immediately, so it will allow users to choose between installing the printer via Windows Ready Print or the traditional OEM process. Users will be able to toggle this configuration through Settings > Bluetooth & Devices > Printers & Scanners > Printer preferences. This control applies only to new printer installations, and its functionality can also be modified via Group Policy as follows: Launch Group Policy Editor Navigate to Local Computer Policy -> Administrative Templates -> Printers Find and select 'Configure Windows Ready Print driver ranking' -> double click to open it Select 'Enabled' (if you wish to enable Windows Ready Print driver selection) or 'Disabled' (if you wish to explicitly disable Windows Ready Print driver selection). Select Apply Select OK Similarly, if you set up Windows protected print mode through the same setting in Windows 11, it will also default to using Windows Ready Print exclusively. Microsoft hopes that these improvements will help eradicate dependency on OEM-specific driver installation processes and simplify printer installations. We'll likely find out more about other tangible benefits in the coming months.
  • Recent Achievements

    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
    • Week One Done
      rubentuben8 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      PsYcHoKiLLa
      231
    3. 3
      +Edouard
      138
    4. 4
      ATLien_0
      87
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!