[lkml]   [2003]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectCoding style - (Was Re: any chance of 2.6.0-test*?)
[Most of a discussion about coding style removed]

> As someone else pointed out, it's provable that goto isn't needed, and
> given that C is a minimalist language, I'm not sure why it was included.

It's worth keeping in mind, when coding in *any* language, that
concepts such as loops, functions, and any kind of 'structured'
programming, are all completely artificial concepts.

Microprocessors are essentially based around:

Loading discrete values to registers.
Loading discrete values into memory locations.
Copying a value from a register or a memory location, to another
register or a memory location.
Pushing and poping values on to and off of the stack.
Jumping to another location based on whether a register contains zero
or a non zero value.

The only thing that can really be considered anything like structured
programming is the stack, (and possibly interupts).

> But at least the code is "readable" when you do that.

Assember for a simple microprocessor such as a Z80 is arguable easier
to understand than C source code for something like the Linux kernel.

It's not the language, or how it is indented, that determines how
difficult code is to read. It's the logic in the code.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.133 / U:10.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site