🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51299

bcopy question

#51299
From: Steve Strauss
Date: Fri, 11 Jun 1993 19:26
21 lines
1237 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.

======================================================================
extern	void	doit(void); 
 
typedef struct
{
    char data[0x4000];
} data_t;

void	doit(void)
{
    *(data_t *)0x00000000 = *(data_t *)0x10000000;
}
======================================================================
--
Steve Strauss
uunet!texsun!gdfwc3!kuwait!steves
Technical Details
Message-ID: <STEVES.93Jun11132619@kuwait.gdfwc3>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!gdfwc3!steves

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ee4ad5110a5bdf09,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-11 17:48:25 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!gdfwc3!steves
From: steves@gdfwc3 (Steve Strauss)
Newsgroups: gnu.gcc.help
Subject: bcopy question
Message-ID: <STEVES.93Jun11132619@kuwait.gdfwc3>
Date: 11 Jun 93 19:26:19 GMT
Sender: usenet@gdfwc3.UUCP
Distribution: gnu
Organization: Lockheed Fort Worth Company
Lines: 21