Self-modifying code

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Self-modifying code
Date: 2005-12-15 05:07:34
Message-ID: 20051215050734.GA31902@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I just read an article on LWN.net about the usage of self-modifying code
for selecting the optimum code for a given operation at run time. This
is probably not a highly portable technique, but Linux has definitions
for i386 and the amd64 archs, so that would cover the most common
scenarios.

This could be useful to provide different TAS implementations depending
on the actual system the code is running on.

The article is here:
http://lwn.net/SubscriberLink/164121/d88fddbb5606a938/

The i386 code is here:
http://lxr.linux.no/source/include/asm-i386/system.h#L288

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Qingqing Zhou 2005-12-15 05:10:37 Re: Which qsort is used
Previous Message Luke Lonergan 2005-12-15 04:49:40 Re: Which qsort is used