All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Compiling C++ modules
@ 2006-05-02 18:21 Al Boldi
  2006-05-02 20:28 ` J.A. Magallon
                   ` (2 more replies)
  0 siblings, 3 replies; 106+ messages in thread
From: Al Boldi @ 2006-05-02 18:21 UTC (permalink / raw)
  To: Christer Weinigel; +Cc: linux-kernel

Christer Weinigel <christer@weinigel.se> wrote:
>> eCos is nice enough -- because it's mostly C :)
>
> And those parts that are C++ (from a 2 year old eCos dist) won't
> compile with a modern g++.

C++ is OO, and OO is great!  OO is the natural way of doing things, and 
allows one to concentrate on the issues at hand, while leaving the 
nitty-gritty to the compiler to decide.

And this is the problem, as kernel development is highly sensitive to 
compiler output, and which is why there are parts written in asm and others 
in C.

So rewriting C with C++ would be as dumb as rewriting asm with C.

But there may be certain higher level parts in the kernel that could benefit 
from rewriting C with C++, much the same as lower level parts have benefited 
from rewriting them in asm.

So we have a situation like this:

	low-level written in asm when needed

	main-level written in C mostly

	high-level written in C++ when needed

Note though, C++ is not currently viable for kernel development, due to its 
enormous overhead generated by immature compiler technology.  Once this has 
matured, there should be no problem.

> -- 
> "Just how much can I get away with and still go to heaven?"

Just know that HE is one and only one.

Thanks!

--
Al


^ permalink raw reply	[flat|nested] 106+ messages in thread
* RE: Compiling C++ modules
@ 2006-04-28  9:37 Khushil Dep
  0 siblings, 0 replies; 106+ messages in thread
From: Khushil Dep @ 2006-04-28  9:37 UTC (permalink / raw)
  To: Avi Kivity, Davi Arnaut
  Cc: Willy Tarreau, Denis Vlasenko, dtor_core, Kyle Moffett, Alan Cox,
	linux-kernel

Have think about your own tag line mate. C is pure. A kernel should be
as pure as possible. Leave it alone folks - haven't we all been down
this road before? Why does everyone want to move higher and higher up
the ladder when it comes to languages? Does no one still love to code in
pure ASM any more or am I just stuck in the past? Leave complexity for
application programmers. System programmers should dream in binary and
talk ASM. :-)

-----------------------
Mr. W. A. Khushil Dep

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Avi Kivity
Sent: 28 April 2006 10:34
To: Davi Arnaut
Cc: Willy Tarreau; Denis Vlasenko; dtor_core@ameritech.net; Kyle
Moffett; Alan Cox; linux-kernel@vger.kernel.org
Subject: Re: Compiling C++ modules

Davi Arnaut wrote:
>>
>> Mozilla is written in C++ ? I start to better understand where the
>> 160 MB bloat comes from...
>>     
>
> Evolution is written in C.
>   

FWIW, userspace is moving away from C as unproductive and unsafe. KDE is

of course C++, mozilla, openoffice are C++, and gnome is moving towards 
(of all things) C#.

GCC considered adopting a C++ subset. My impressions of the discussion 
was that (a) a majority of the developers would like that (b) RMS would 
never allow it (c) there were concerns about bootstrap on platforms 
where a C++ compiler was not available.

Kernels of other operating systems (Windows, AIX (?)) allow C++. And 
don't start about Windows crashing whenever you sneeze at it - it's so
1998.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick
to panic.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 106+ messages in thread
[parent not found: <65eLE-GJ-21@gated-at.bofh.it>]
* Compiling C++ modules
@ 2006-04-24 19:16 Gary Poppitz
  2006-04-24 19:27 ` Greg KH
                   ` (5 more replies)
  0 siblings, 6 replies; 106+ messages in thread
From: Gary Poppitz @ 2006-04-24 19:16 UTC (permalink / raw)
  To: linux-kernel

I have the task of porting an existing file system to Linux. This  
code is in C++ and I have noticed that the Linux kernel has
made use of C++ keywords and other things that make it incompatible.

I would be most willing to point out the areas that need adjustment  
and supply patch files to be reviewed.

What would be the best procedure to accomplish this?

^ permalink raw reply	[flat|nested] 106+ messages in thread

end of thread, other threads:[~2006-05-03 20:52 UTC | newest]

Thread overview: 106+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 18:21 Compiling C++ modules Al Boldi
2006-05-02 20:28 ` J.A. Magallon
2006-05-02 23:55 ` Peter Williams
2006-05-03  8:09 ` Steven Rostedt
  -- strict thread matches above, loose matches on Subject: below --
2006-04-28  9:37 Khushil Dep
     [not found] <65eLE-GJ-21@gated-at.bofh.it>
     [not found] ` <65zwH-61W-51@gated-at.bofh.it>
     [not found]   ` <65zZH-6Bw-23@gated-at.bofh.it>
     [not found]     ` <66grR-2DK-27@gated-at.bofh.it>
2006-04-28  0:03       ` Robert Hancock
2006-04-24 19:16 Gary Poppitz
2006-04-24 19:27 ` Greg KH
2006-04-24 19:30 ` Al Viro
2006-04-24 19:40 ` linux-os (Dick Johnson)
2006-04-24 20:54   ` Geert Uytterhoeven
2006-04-24 19:42 ` Alexey Dobriyan
2006-04-24 20:30 ` Daniel Barkalow
2006-04-24 20:45 ` Alan Cox
2006-04-24 21:03   ` Avi Kivity
2006-04-24 21:23     ` Joshua Hudson
2006-04-24 21:29     ` Kyle Moffett
2006-04-24 21:50       ` marty fouts
2006-04-24 22:09         ` Martin Mares
2006-04-24 22:30           ` Willy Tarreau
2006-04-24 22:32           ` Joshua Hudson
2006-04-24 22:45           ` marty fouts
2006-04-25 15:32         ` Michael Buesch
2006-04-25  7:08       ` Avi Kivity
2006-04-25 10:23         ` James Courtier-Dutton
2006-04-25 15:59         ` Kyle Moffett
2006-04-25 16:46           ` Avi Kivity
2006-04-25 17:10             ` Dmitry Torokhov
2006-04-25 17:19               ` Avi Kivity
2006-04-25 17:28                 ` Dmitry Torokhov
2006-04-25 17:53                   ` Avi Kivity
2006-04-25 18:04                     ` Dmitry Torokhov
2006-04-25 18:08                     ` Valdis.Kletnieks
2006-04-25 18:26                       ` Avi Kivity
2006-04-25 18:38                         ` Avi Kivity
2006-04-25 18:52                           ` Michael Poole
2006-04-25 19:13                             ` Avi Kivity
2006-04-27 15:10                     ` Denis Vlasenko
2006-04-27 20:15                       ` Willy Tarreau
2006-04-27 21:08                         ` Davi Arnaut
2006-04-28  9:33                           ` Avi Kivity
2006-04-28 10:03                             ` Avi Kivity
2006-04-28 11:27                               ` Sergei Organov
2006-04-28 11:03                             ` Martin Mares
2006-04-28 11:30                               ` Avi Kivity
2006-04-28 15:56                                 ` Jan Engelhardt
2006-04-28 17:02                                   ` Avi Kivity
2006-04-28 17:38                                     ` linux-os (Dick Johnson)
2006-04-29  2:50                                       ` Christer Weinigel
2006-05-01 17:46                                       ` Dave Neuer
2006-05-01 20:21                                         ` Jan Engelhardt
2006-05-01 23:53                                         ` David Schwartz
2006-05-02  5:12                                           ` Willy Tarreau
2006-05-02 10:32                                             ` Avi Kivity
2006-05-02 11:15                                               ` Martin Mares
2006-05-02 11:26                                                 ` Avi Kivity
2006-05-02 11:40                                                   ` linux-os (Dick Johnson)
2006-05-02 12:42                                                   ` David Woodhouse
2006-05-02 16:27                                                     ` Christer Weinigel
2006-05-02 12:48                                                   ` Martin Mares
2006-05-02 13:52                                                     ` Avi Kivity
2006-05-02 14:13                                                       ` Al Viro
2006-05-02 14:54                                                         ` Avi Kivity
2006-05-02 16:16                                                   ` Brian Beattie
2006-05-02 16:21                                                     ` Avi Kivity
2006-05-02 13:21                                               ` Willy Tarreau
2006-05-02 14:41                                                 ` Avi Kivity
2006-05-02 22:25                                                   ` Diego Calleja
2006-05-02 13:34                                               ` Al Viro
2006-05-02 14:02                                                 ` Avi Kivity
2006-05-02 14:34                                                   ` Al Viro
2006-05-02 15:04                                                     ` Avi Kivity
2006-05-02 15:15                                                       ` Al Viro
2006-05-02 15:19                                                         ` Avi Kivity
2006-05-02 15:27                                                           ` Kyle Moffett
2006-05-02 15:30                                                             ` Avi Kivity
2006-05-02 15:28                                                           ` Al Viro
2006-05-02 15:51                                                             ` Avi Kivity
2006-05-02 15:24                                                         ` Kyle Moffett
2006-05-03 13:13                                           ` Mark Lord
2006-05-03 20:51                                             ` David Schwartz
2006-04-30 21:15                               ` Eric W. Biederman
2006-04-25 17:54                 ` linux-os (Dick Johnson)
2006-04-26  8:30                   ` Jan Engelhardt
2006-04-26 11:36                     ` linux-os (Dick Johnson)
2006-04-25 19:22             ` Kyle Moffett
2006-04-25 19:54               ` Michael Buesch
2006-04-25 20:24               ` Avi Kivity
2006-04-25 20:11             ` Bongani Hlope
2006-04-25 20:26               ` Avi Kivity
2006-04-25 21:02                 ` Valdis.Kletnieks
2006-04-25 21:15                   ` Avi Kivity
     [not found]                     ` <71a0d6ff0604251646g4fc90b3dr30a03b8606360e7f@mail.gmail.com>
2006-04-26  4:39                       ` Avi Kivity
2006-04-25 17:55           ` Geert Uytterhoeven
2006-04-24 21:58     ` Alan Cox
2006-04-25  7:20       ` Avi Kivity
2006-04-25  9:06         ` Matt Keenan
2006-04-25 20:29           ` Bongani Hlope
2006-04-25 20:37             ` Avi Kivity
2006-04-25 21:08               ` Bongani Hlope
2006-04-25  4:17     ` Martin J. Bligh
2006-04-25  5:30       ` Avi Kivity
2006-04-25  8:58         ` Sam Ravnborg
2006-04-25  7:56     ` Jakob Oestergaard
2006-04-25  9:03     ` Jan Engelhardt
2006-04-24 21:36   ` J.A. Magallon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.