From: Martin Str|mberg Subject: Re: Prolog Newsgroups: comp.os.msdos.djgpp References: User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha)) Message-ID: <1028324445.477046@queeg.ludd.luth.se> Cache-Post-Path: queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: 02 Aug 2002 21:40:45 GMT Lines: 18 NNTP-Posting-Date: 02 Aug 2002 21:40:45 GMT NNTP-Posting-Host: queeg.ludd.luth.se X-Trace: 1028324445 news.luth.se 441 130.240.16.109 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Lawrence Rust wrote: : 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 ( "..."); : } While I agree with Hans-Bernhard that you should put them into their own .s (or .S) file, one technique I've been using for quick hacks is just add the __asm__ () outside any function. Lo and behold, you just made an assembly function in a C file! Right, MartinS