Article View: gnu.gcc.help
Article #42264inline not working for member functions
From: Robert J. Brown
Date: Sat, 06 Jan 1996 00:00
Date: Sat, 06 Jan 1996 00:00
25 lines
1896 bytes
1896 bytes
I am building a cross-compiler to generate mips code. I need little endian convention on the R-3000 series cpu. I used mips-dec-bsd because that fills the bill and gives me the a.out object format that I also need for the simulator I am using until we get real hardware. The application is firmware for a mips r3000 standard cell on a custom asic chip, so we will be using the simulator a lot -- we want it to work when we go to silicon. Anyway, when I compile C++ code in a little test file that only uses one class defined in a header file, I cannot get 'inline' to work for the member functions. The info text for gcc says that member functions should automatically get inlined. They don't! I even tried -finline-functions on the gcc command line. This last trick DID get the functions I declared in the main.cc file to become inlined, but the member function are still getting jal-ed to in the assembler source code output by -S. These are quite short functions that just insert or remove a node from a linked list. I don't understand what I could be doing wrong. Does anybody here have any ideas about this? -- ----------- "... And the men went up and viewed Ai." [Jos 7:2] ----------- Robert Jay Brown III rj@eli.wariat.org http://eli.wariat.org 1 708 705-0370 Elijah Laboratories Inc; 759 Independence Drive; Suite 5; Palatine IL 60074 ----- M o d e l i n g t h e M e t h o d s o f t h e M i n d ------
Technical Details
Message-ID:
<RJ.96Jan6044241@eli.wariat.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b0b3fcc035ac9eea,start X-Google-Attributes: gid11318c,public From: rj@eli.wariat.org (Robert J. Brown) Subject: inline not working for member functions Date: 1996/01/06 Message-ID: <RJ.96Jan6044241@eli.wariat.org> X-Deja-AN: 134205302 distribution: world organization: XNet - A Full Service Internet Provider - (708) 983-6064 newsgroups: gnu.gcc.help