From mboxrd@z Thu Jan 1 00:00:00 1970 From: "S kris" Subject: Naked Functions Date: Tue, 27 May 2003 19:43:59 +0530 Sender: gcc-owner@gcc.gnu.org Message-ID: Mime-Version: 1.0 Return-path: List-Unsubscribe: List-Archive: List-Post: List-Help: List-Id: Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 7bit To: gcc@gcc.gnu.org Cc: linux-assembly@vger.kernel.org Hi, I have come across some MS C code which uses 'naked' functions. How can I achieve a similar effect with GNU toolchain. I do not want to rewrite the code in assembly .s file and would prefer to do simple modifications to make it work with Linux. Is the macro __attribute__((naked)) valid for the above purpose? If not, what are the methods to generate the code for functions without its prolog and epilog code (naked functions) under Linux? Is prolog and epilog code generated by both MS tools and GNU tools (compilers) are same? Please clarify the above queries. Thanks in advance. --Kris _________________________________________________________________ Reconnect with old pals. Relive the happy times. http://www.batchmates.com/msn.asp With just one click.