Custom stack pointer

Hello,

I'm trying to port an application that implements its own thread scheduling. It calls malloc to allocate a block of memory then it changes sp to point to the end of the block. The Pocket PC 2003 emulator stops on the instruction that changes the sp register. A message box is displayed "No symbols loaded for any stack frame. The source code cannot be displayed" then the program stops. Is it a restriction of the OS or the debugger Can any pointer be used as a stack pointer under Windows CE  Thanks for your help.



Answer this question

Custom stack pointer

  • cdellinger

    It's for a sort of virtual machine. Actually I'm only using the visual studio arm emulator for debugging. The application is targeted to another OS that will not have this restriction. I managed to make it work with a very dirty hack : creating a native thread that allocates memory on its stack with alloca then pass the allocated pointer to the main thread before waiting forever. It's ugly but it's just for debugging.


  • Chris Shearer Cooper

    There's pretty much infinite number of things which could go wrong with this.
    Why do you need custom threading Can you trash it and use whatever CE provides < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



  • Custom stack pointer