From: "Lawrence Rust" 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: 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