Article View: gnu.gcc.help
Article #51300bcopy question
From: meissner
Date: Sat, 12 Jun 1993 02:58
Date: Sat, 12 Jun 1993 02:58
18 lines
1444 bytes
1444 bytes
| When I compile the following code, a call to bcopy() is generated. I | am using gcc version 2.2.3, with _no_ flags. How does the compiler | know of the existence of bcopy(), and how can I get it generate code | to do the copy instead of calling a function? Thanks in advance. If you want it to call memcpy (ISO/ANSI/SystemV) instead of bcopy, you need to have TARGET_MEM_FUNCTIONS defined in the config file. If you want inline code generated, you will need to define the movstrsi pattern in the machine description. Look at say the 386 and/or MIPS machine descriptions for movstrsi patterns (usually there is support code in the .c file too). -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 Old hackers never die, they just get buggier.
Technical Details
Message-ID:
<9306120253.AA14456@curley.osf.org>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissnerReferences:
meissner@osf.ORGShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ee4ad5110a5bdf09 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-11 20:06:51 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner From: meissner@osf.ORG Newsgroups: gnu.gcc.help Subject: bcopy question Date: 11 Jun 1993 22:58:18 -0400 Organization: GNUs Not Usenet Lines: 18 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9306120253.AA14456@curley.osf.org> References: meissner@osf.ORG