🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51300

bcopy question

#51300
From: meissner
Date: Sat, 12 Jun 1993 02:58
18 lines
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!meissner
References: meissner@osf.ORG

Show 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