rml on GCC extensions (and making them portable)

Blog | rml talks about a bunch of useful GCC extensions.

We generally don’t use this within mysql code. Due (no doubt) to portability issues. Maybe we should look closer at it these days. I wonder if we’d get any noticable improvement in NDB by adding it to our ndbrequire/ndbassert and CRASH_INSERTION tests. In some areas of code we do have a number of asserts.

The place to play is ndb/src/kernel/vm/pc.hpp

as actually triggering a ndbassert or ndbrequire is something that should never happen, unlikely() is a good thing to put there.

Interestingly enough, this is probably the place we also want to play with for dtrace. either that or with EXECUTE_DIRECT (and another place that Mikael mentioned on IRC last night.

My next task is to get qemu network interface working so i can get the source across to my VM of Solaris 10 and then start playing.

Of course, the other option is to actually install it somewhere (or shell out for vmware). It would be a lot faster then though.

One thought on “rml on GCC extensions (and making them portable)

  1. Pingback: Elliot Murphy 28:1 » Blog Archive » Never ask a customer to re-crash the car

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.