CompuServe Thread

CodeWarrior problem

5 messages in this thread
#163676From: Dan PodwallMar 13, 1994 1:10 PM
"Could somebody upload here the CodeWarrior 68k debugger patch for version d4 or d5?" No debugger patch has been released. There will be an updated debugger on the upcoming DR2 CD. "P.S. Is the asm complete? Does it recognize 68020 addressing mode? Why do I have this error : "Stack not initialized" when I writing asm code?" The assembler understands 68000 only. You have to set up a stack frame to be able to access paramters symbolically. See the assembler chapter in the MW C reference document. Dan Podwall Metrowerks, Inc.
#163874From: Antoine ROSSETMar 14, 1994 12:17 PM
"See the assembler chapter in the MW C reference document." It's EXTREMELY short… "You have to set up a stack frame to be able to access paramters symbolically." What do you mean by that? Could you give me an example in asm or in C? My documentation about asm is only 2 pages… I cannot make a link with the CodeWarrior PPC.a2, is it normal? Do I need a PPC to make a link and create my final application?
#163917From: Dan PodwallMar 14, 1994 4:32 PM
Here's a short assembler example. It has a parameter, a register local variable, a stack local variable, and returns a result: static short f(short n) { register short a; // a in a data register short b; // b on a stack fralloc + // allocate space on stack // and setup registers move.w n,a add.w a,a move.w a,D0 // return result in D0 frfree // de-allocate stack space rts } You should be able to link with a2 from a 68K. What happens when you try to link? Dan Podwall Metrowerks, Inc.
#164021From: Antoine ROSSETMar 15, 1994 6:28 AM
Thank you for this sample ! I can make a link with the 68k, but not with the PPC. Maybe it's normal, I think I need to make this link on a PPC Computer? I choose Make menu, and nothing appends: no error message, nothing…
#164032From: Dan PodwallMar 15, 1994 8:22 AM
"I choose Make menu, and nothing appends: no error message, nothing…" There's a known bug where this happens if MWCRuntime.lib is not in the project. Add it if it is not already there, and please let me know if the problem continues. Dan Podwall Metrowerks, Inc.