lkml.org 
[lkml]   [2003]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: gcc 2.95 vs 3.21 performance
On Tue, Feb 04, 2003 at 03:21:01PM -0800, Larry McVoy wrote:
> > I'd love to see a small - and fast - C compiler, and I'd be willing to
> > make kernel changes to make it work with it.
>
> I can't offer any immediate help with this but I want the same thing. At
> some point, we're planning on funding some extensions into GCC or whatever
> reasonable C compiler is around:

[snipping Linus from To:]

Cool.

>
> - associative arrays as a builtin type
>
> {
> assoc bar = {}; // anonymous, no file backing
>
> bar{"some key"} = "some value";
> if (defined(bar{"some other value"})) ...
> }

Allow me:

{
std::map<std::string,std::string> bar;

bar["some key"] = "some value";
if (bar.find("some other value") != bar.end()) ...
}

Works beautifully, all you need is to pick the existing language which
allows for the existing standard library which already provide that
functionality.

I doubt there's much need for a C+ or C 2+/3 langauage variant ;)

>
> - regular expressions
>
> {
> char *foo = "blech";
>
> if (foo =~ /regex are nice/) {
> printf("Well isn't that special?\n");
> }
> }

Ok, I can't help you with that.

You have probably seen a Perl program before... Now imagine a two
million line Perl program... That is why the above is not a good idea ;)

It's still your right to want it of course...

>
> - tk bindings built in

Built into the language (not a library)?

<sarcasm>
Then I'd want the compiler in a kernel module ;)
</>

> and then we'll port BK to that compiler. It's likely to be GCC because we
> want to support all the different architectures but if a kernel sponsered
> cc shows up we'll happily throw money at that.

If you look at http://www.codesourcery.com, you can see that there
really are some people who do GCC extentions or optimizations for money
- various institutions have funded additions to GCC this way.

It's a cool idea - I have a few things I'd like my company to fund as
well... Some time in the future... Unless someone beats us to it.

--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............:
-
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/

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