🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csugrad.programming.c
Article #7

Re: g++ and inlining asm code, possible?

#7
From: Fabrizio Giudici
Date: Mon, 11 Sep 1995 12:40
25 lines
1751 bytes
Christian Nelson (cnelson@csugrad.cs.vt.edu) wrote:
: I'm currently writing a fixed point number class and I'm trying to
: convince g++ (2.6.3 on a linux machine) to inline asm code for two of
: the operators.  The operators in question are:

: friend fixed operator * (const fixed a, const fixed b); 
: friend fixed operator / (const fixed a, const fixed b);


: It just doesn't seem to want to do it.  I explicitly made them

Did you remember to disable debbugging info (i.e. to remove the -g switch)?
If I remember well, inlining is disabled with that switch...

Hope this helps...

--
.---------------------------------------------------------------------------.
| Fabrizio Giudici, PhD Student (fritz@dibe.unige.it) |                     |
|   WWW-PAGE: http://poseidon.dibe.unige.it/~fritz/   | Style distinguishes |
|          PHONE: +39 10  3532163 / 3532780           |   excellence from   |
|      Dept. of Biophys. and Elect. Eng. (DIBE)       |   accomplishment.   |
|     University of Genoa - ITALY, EUROPE, EARTH      |                     |
`---------------------------------------------------------------------------'
 All expressed opinions are personal and not of the organization I work for. 
Technical Details
Message-ID: <431aoc$93n@alpha.cisi.unige.it>
Path: arc1-ca.pugleaf.net!news.unige.it!poseidon!fritz
References: <42m2qh$crs@csugrad.cs.vt.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.unige.it!poseidon!fritz
From: fritz@dibe.unige.it (Fabrizio Giudici)
Newsgroups: csugrad.programming.c,comp.lang.c++,rec.games.programmer
Subject: Re: g++ and inlining asm code, possible?
Followup-To: csugrad.programming.c,comp.lang.c++,rec.games.programmer
Date: 11 Sep 1995 12:40:44 GMT
Organization: University of Genoa
Message-ID: <431aoc$93n@alpha.cisi.unige.it>
References: <42m2qh$crs@csugrad.cs.vt.edu>
NNTP-Posting-Host: poseidon.dibe.unige.it
X-Newsreader: TIN [version 1.2 PL2]