ftp.delorie.com/archives/browse.cgi | search |
From: | Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se> |
Subject: | Re: Prolog |
Newsgroups: | comp.os.msdos.djgpp |
References: | <zdZ19.3130$6j5 DOT 101432 AT newsfep2-win DOT server DOT ntli DOT net> |
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 <lvr AT nospam DOT softsystem DOT co DOT uk> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |