lkml.org 
[lkml]   [1998]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Is the kernel compiler gcc by definition?

-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Oct 14, 1998 at 05:48:23PM -0400, RHS Linux User wrote:
>
>
> Is there a policy on what C constructs may be in the kernel?
> Or is gcc the de-facto definition of what kind of code is allowed?
> Or something else?

My believe is the standard de facto is Alan not gcc itself. Gcc is ANSI C
compliant with some GNU extensions. Usually you can put any ANSI C
constructs into the kernel.

> Does anything in the normal arguments to gcc preclude the use of gcc's
> labels-as-values? ( computed gotos).
>
> I did a quick grep for goto * and got no hits.
>
gotos are part of ansi c. They just make for very ugly programs. The use of
gotos in C is disencouraged 99.99% of the time cause it makes for spagheti
code.

> Labels-as-values is a case where gcc is more low-level than "C", and is
> crucial to certain things, like the inner interpreter of gForth, and the
> Forth-like critter I'm ( back burner) working on.
>
I never did Forth but i'm almost sure i'm glad the kernel was not written in
forth heehhe.

- --
Carlos Morgado - l39801@alfa.ist.utl.pt - http://alfa.ist.utl.pt/~c39801
PGP Key fingerprint = 43 BF 53 98 EB 32 F5 17 9E EB 77 1F 57 8C C6 83
Never settle with words what you can accomplish with a flame thrower.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBNiZXC4ewijNBLgpJAQHNowQAqs/ZmzdLChVluJKD+40Fi+HMK7mLENM5
2gAHmmFd++N33OEngBC0+5CV5jlVOVOz7OdhQu0gJNdgu0KAebv4zKMTVCC6l5vl
8uPu7LFWMEgnCQFypXoIjd/hf65e12kkR4PdACJeQfbuA3qzx0gRsZJdJiD/dihk
dv+cfxtTuL0=
=QT+p
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site