www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/31/18:38:46

From: "Lawrence Rust" <lvr AT nospam DOT softsystem DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Prolog
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Message-ID: <zdZ19.3130$6j5.101432@newsfep2-win.server.ntli.net>
Date: Wed, 31 Jul 2002 23:08:24 +0100
NNTP-Posting-Host: 62.253.142.12
X-Complaints-To: abuse AT ntlworld DOT com
X-Trace: newsfep2-win.server.ntli.net 1028153311 62.253.142.12 (Wed, 31 Jul 2002 23:08:31 BST)
NNTP-Posting-Date: Wed, 31 Jul 2002 23:08:31 BST
Organization: ntl Cablemodem News Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Is it possible to suppress the prolog and epilog code emitted by gcc in an
extern function just consisting of asm statements?  E.g in:

extern void foo( void)
{
  __asm__ __volatile ( "...");
}

Even in an optimised (-O3) build the compiler emits:

 pushl %ebp
 movl %esp,%ebp
 ...
 movl %ebp,%esp
 popl %ebp
 ret

TIA

-- Lawrence Rust


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019