Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Argh, VC++ inlines.   Message List  
Reply | Forward Message #4127 of 15019 |
The situation is: I'm trying to write an emulator.
It runs a sum total of 2 public domain demos. One of
them runs ok, the other one runs VERY SLOW. My ARM
CPU is a big class; to remedy the slowness of it I
want to make a lot of the member functions inline, but
without having to stick them in the header file. In
VC++, when I put __inline befoer a function
definition, I get the linker error,

"unresolved external symbol "public: unsigned long
__thiscall ARM::<insert the name of the function
here>"

I don't know if this happens for other compilers than
VC++. But I thought perhaps someone one this list
would know how to solve the problem, or if it can be
solved.


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/




Sun Jun 3, 2001 3:38 am

sorcererxiii@...
Send Email Send Email

Forward
Message #4127 of 15019 |
Expand Messages Author Sort by Date

The situation is: I'm trying to write an emulator. It runs a sum total of 2 public domain demos. One of them runs ok, the other one runs VERY SLOW. My ARM ...
Thomas Happ
sorcererxiii@...
Send Email
Jun 3, 2001
12:38 pm

You are specifying the /Ob1 or /Ob2 option in the compiler settings ? Also, remember to use __forceinline so that it will be forced inline (although just...
David Cowan
david.cowan@...
Send Email
Jun 3, 2001
1:11 pm

Hey Thomas, If you put inline before a function, that function has to exist in the header file. Otherwise, you'll get unresolved external symbols. There is a...
Jeff Dixon
bodisafa@...
Send Email
Jun 3, 2001
1:51 pm

Are you sure that function call overhead slow down you code so much??? Naaa, you should optimize your code at all and then inline it!!! ... From: "Thomas Happ"...
Fausto
faustus@...
Send Email
Jun 3, 2001
5:18 pm

Hey, I just wanted to thank everyone for their advice on this subject, you were very thorough. Sadly I wasn't even aware that VC++ had a profiler built in....
Thomas
sorcererxiii@...
Send Email
Jun 5, 2001
8:31 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help