Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Any idea what __restore_fpr_23 is?

 
   Macintosh computer (Home) -> Programmer Code RSS
Next:  Help needed switching from CW 9 to XCode  
Author Message
RogueWarrior

External


Since: Apr 07, 2006
Posts: 39



(Msg. 1) Posted: Sat Jul 01, 2006 5:05 pm
Post subject: Any idea what __restore_fpr_23 is?
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

I'm getting the following link errors when following the Codewarrior to
XCode conversion preparation. Anyone know what the story is here?

Link Error : undefined: '__restore_fpr_23' (code)
Referenced from 'Noise' in Noise.c

Link Error : undefined: '__save_fpr_23' (code)
Referenced from 'Noise' in Noise.c

Link Error : undefined: '__restore_fpr_21' (code)
Referenced from 'DNoise2' in Noise.c

Link Error : undefined: '__save_fpr_21' (code)
Referenced from 'DNoise2' in Noise.c

I've search the newsgroup for this and all I find are things to do with
link order which I've tried and to use the MSL library which I'm not
supposed to do.

 >> Stay informed about: Any idea what __restore_fpr_23 is? 
Back to top
Login to vote
Paul22

External


Since: Jun 25, 2004
Posts: 53



(Msg. 2) Posted: Mon Jul 03, 2006 1:46 pm
Post subject: Re: Any idea what __restore_fpr_23 is? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"RogueWarrior" wrote in message

> I'm getting the following link errors when following the Codewarrior to
> XCode conversion preparation. Anyone know what the story is here?
>
> Link Error : undefined: '__restore_fpr_23' (code)
> Referenced from 'Noise' in Noise.c
>
> Link Error : undefined: '__save_fpr_23' (code)
> Referenced from 'Noise' in Noise.c
>
> Link Error : undefined: '__restore_fpr_21' (code)
> Referenced from 'DNoise2' in Noise.c
>
> Link Error : undefined: '__save_fpr_21' (code)
> Referenced from 'DNoise2' in Noise.c
>
> I've search the newsgroup for this and all I find are things to do with
> link order which I've tried and to use the MSL library which I'm not
> supposed to do.
>

IIRC, there were a bunch of those that saved and restored assorted registers
from the stack. I even remember seeing them: they're written in assembler
and buried somewhere in the MSL sources. I don't know if they're MW specific
or defined in some PPC ABI document and implemented by MW: they do fill a
need that any runtime library would have.

It would be interesting to know where they're being called. If the runtime
is using them internally they should be available. Is it possible that you
have some inline assembly that used them to manage stack frames, or a static
library compiled with CW?

 >> Stay informed about: Any idea what __restore_fpr_23 is? 
Back to top
Login to vote
RogueWarrior

External


Since: Apr 07, 2006
Posts: 39



(Msg. 3) Posted: Mon Jul 03, 2006 8:02 pm
Post subject: Re: Any idea what __restore_fpr_23 is? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well, I figured it out. There are a whole bunch of restore_fpr
routines defined in runtime.c which is part of the Mac OSX Support MSL
libraries. However for some reason it's not enough to just add it to
the project. I got compile errors. But if I took the MSL Runtime
project, copied it, and removed everything but runtime.c, compiled a
new library, added that to my project, it compiles, links and runs no
problem. YAY!
Now to see if the damn thing works in XCode.
 >> Stay informed about: Any idea what __restore_fpr_23 is? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
CodeWarrior for WinXP - Hello! I developed a photoshop plugin with VC++ 6.0, and I want to put this project into Metrowerks CodeWarrior IDE 5.5. With some modification the project from the CW is compiled, but the output file is not visible by Photoshop7. The plugin is based...

CodeWarrior forum - Is there any forum, mailing list for CodeWarrior in general, not just for Mac !? Although CodeWarrior is used most on the Macs! Bogdan

Mach-O C++ error question - I'm getting the following error (compiles fine w/CFM 9.2, but with Mach-O 9.2, I have problems): Error : ';' expected x.h line 428 for(BPtrVector::iterator i = first; i != last; ++i) Or the form: TRectangle<T>::iterator des...

Metrowerks::thread in CFM plugin - Hi, Using CW9 I am doing an Adobe After Effect 6.0 plugin which is an CFM shared library and runs under OS X.I am trying to test the Metrowerks::thread but everythings seems to be executed in main thread. I am using the following code: void..

Resources in Carbon - hi, I finally got my PowerPlant code to compile in Carbon. When I run it, I get a dialog that an exception was thrown. The cause is that it can't find the 'MBAR' resource. The MBAR is located in a .ppob file and part of the target build. I opened the...
   Macintosh computer (Home) -> Programmer Code All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]