🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53426

Re: RPC and gcc

#53426
From: Hamish Macdonald
Date: Fri, 24 Jan 1992 13:56
12 lines
1404 bytes
>>>>> On 23 Jan 92 18:31:31 GMT,
>>>>> In message <1992Jan23.183131.5242@lgc.com>,
>>>>> danson@lgc.com (Doug Anson) wrote:

Doug> If I am not mistaken, gcc handles structure passing differently
Doug> than cc. I had an RPC based program that died miserably when I
Doug> tried compiling the RPC stubs and application code with gcc. I
Doug> was using TCP as the transport. The fix I used was to compile
Doug> the RPC stubs with cc, then compile the rest of my application
Doug> with gcc and link the whole thing with gcc. Works like a charm!

gcc -fpcc-struct-return ...
Technical Details
Message-ID: <1992Jan24.135644.29276@bmerh2.bnr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!cs.utexas.edu!utgpu!cunews!nrcnet0!bnrgate!bmerh2!bmerh2!hamish
References: <1992Jan22.233901.29599@mprgate.mpr.ca> <1992Jan23.183131.5242@lgc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7808c10d03c80e0e
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,7808c10d03c80e0e
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 1992-01-24 07:01:11 PST
Newsgroups: gnu.gcc.help,comp.unix.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!cs.utexas.edu!utgpu!cunews!nrcnet0!bnrgate!bmerh2!bmerh2!hamish
From: hamish@bnr.ca (Hamish Macdonald)
Subject: Re: RPC and gcc
In-Reply-To: danson@lgc.com's message of 23 Jan 92 18:31:31 GMT
Message-ID: <1992Jan24.135644.29276@bmerh2.bnr.ca>
Lines: 12
Sender: news@bmerh2.bnr.ca (Usenet News Admin)
Organization: Bell Northern Research
References: <1992Jan22.233901.29599@mprgate.mpr.ca> <1992Jan23.183131.5242@lgc.com>
Date: Fri, 24 Jan 92 13:56:44 GMT