Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.unix.programmer > #1231

Re: Any suggestions for Linux Beginners stepping to Linux kernel.

From Rainer Weikusat <rweikusat@mssgmbh.com>
Newsgroups comp.unix.programmer
Subject Re: Any suggestions for Linux Beginners stepping to Linux kernel.
Date 2011-09-07 14:22 +0100
Message-ID <877h5k32sv.fsf@sapphire.mobileactivedefense.com> (permalink)
References (1 earlier) <9cm9amF72aU4@mid.individual.net> <87mxehq32g.fsf@sapphire.mobileactivedefense.com> <9cnf25F72aU6@mid.individual.net> <87liu1s7e3.fsf@sapphire.mobileactivedefense.com> <9cnh0kF72aU8@mid.individual.net>

Show all headers | View raw


Ian Collins <ian-news@hotmail.com> writes:
> On 09/ 7/11 09:11 AM, Rainer Weikusat wrote:
>> Ian Collins<ian-news@hotmail.com>  writes:
>>> On 09/ 7/11 12:15 AM, Rainer Weikusat wrote:
>>>> Ian Collins<ian-news@hotmail.com>   writes:
>>>>
>>>> [...]
>>>>
>>>>>    Kernel code is not a good source to study C, unless you want to
>>>>>    pick up bad habits early.
>>>>
>>>> Care to name some of these bad habits, together with an explanation
>>>> why you consider them to be bad habits?
>>>
>>> Writing gcc specific code.
>>
>> 'Worrying about portability' without portability being a requirement
>> is a bad habit because it means 'doing more work now because of
>> $something which might happen in future'.
>
> That's all well and good for an experienced programmer, but a novice
> should learn standard C, not GNU C.  If a novice does want to study
> kernel code, they can always try one that tried to avoid compiler
> specifics (such as OpenSolaris).

I actually like to clarify/ narrow my statement somewhat: While I'm
completely convinced that features exist in order to be exploited when
they are useful (random example: sufficiently recent versions of GCC
provide a hardware-independent way of using memory barriers), I'd
agree with the notion that 'unconciously writing xyz specific code' is
a bad habit.

Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-06 00:41 -0700
  Re: Any suggestions for Linux Beginners stepping to Linux kernel. Ian Collins <ian-news@hotmail.com> - 2011-09-06 22:00 +1200
    Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-06 13:15 +0100
      Re: Any suggestions for Linux Beginners stepping to Linux kernel. Ian Collins <ian-news@hotmail.com> - 2011-09-07 08:44 +1200
        Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-06 22:11 +0100
          Re: Any suggestions for Linux Beginners stepping to Linux kernel. Ian Collins <ian-news@hotmail.com> - 2011-09-07 09:18 +1200
            Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-07 14:22 +0100
    Re: Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-07 01:03 -0700
  Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-06 13:11 +0100
    Re: Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-07 01:11 -0700
      Re: Any suggestions for Linux Beginners stepping to Linux kernel. "onixie@gmail.com" <onixie@gmail.com> - 2011-09-07 22:09 -0700
        Re: Any suggestions for Linux Beginners stepping to Linux kernel. Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-08 20:16 +0100
  Re: Any suggestions for Linux Beginners stepping to Linux kernel. Volker Birk <bumens@dingens.org> - 2011-09-06 12:50 +0000
  Re: Any suggestions for Linux Beginners stepping to Linux kernel. Paul <nospam@needed.com> - 2011-09-06 13:07 -0400
    Re: Any suggestions for Linux Beginners stepping to Linux kernel. Stanley Rice <heconghui@gmail.com> - 2011-09-07 01:26 -0700
      Re: Any suggestions for Linux Beginners stepping to Linux kernel. "onixie@gmail.com" <onixie@gmail.com> - 2011-09-07 22:01 -0700

csiph-web