Search found 6 matches

by Peter
Thu Sep 03, 2009 8:05 am
Forum: devkitARM
Topic: What's the correct method to switch to 8mb heap
Replies: 4
Views: 6118

Re: What's the correct method to switch to 8mb heap

I'd need a bit more information on what you're doing.
I want to have extra space for title specific data, debug data and code. With title specific resources I refer to e.g. memory tracking stats, debug font resources, additional debug information in game assets and code that is available in ...
by Peter
Wed Sep 02, 2009 11:00 am
Forum: devkitARM
Topic: What's the correct method to switch to 8mb heap
Replies: 4
Views: 6118

What's the correct method to switch to 8mb heap

What is the official devkitARM method to switch heap memory to 8mb when creating applications for the nintendo ds? So far, I just modified the ewram constant in devkitPro\devkitARM\arm-eabi\lib\ds_arm9.ld , but I wonder if there is a makefile switch that I'm missing and if this has any unexpected ...
by Peter
Sun Aug 16, 2009 1:17 pm
Forum: devkitARM
Topic: Getting stack-trace at run-time?
Replies: 5
Views: 6836

Re: Getting stack-trace at run-time?

elhobbs wrote:good luck, please share results.
Here they are: callstack trace on the nintendo ds
by Peter
Thu Jul 30, 2009 11:26 am
Forum: devkitARM
Topic: Getting stack-trace at run-time?
Replies: 5
Views: 6836

Re: Getting stack-trace at run-time?

you can look at the defaultexceptionhandler code in libnds. you can usually find the previous function from the LR register.
I'll take a look at! I hope it contains more than just LR, one call level is not really helpful. I'll see.

but, I am not sure how you would be able to automaticly ...
by Peter
Wed Jul 29, 2009 7:34 pm
Forum: devkitARM
Topic: Getting stack-trace at run-time?
Replies: 5
Views: 6836

Getting stack-trace at run-time?

Hi,

is there any way to get a call-stack at run-time (on the target device, rather than gdb)? I want to display the call-stack on-screen on the target device when an assert takes places. I tried unwind.h without success as well as __builtin_frame_address which only supports one level of depth if I ...
by Peter
Fri Apr 10, 2009 9:18 am
Forum: devkitARM
Topic: generated code for vtable
Replies: 0
Views: 3067

generated code for vtable

I wonder why the virtual function table always contains two 0 addresses beside the actual addresses of member functions marked with the virtual keyword.

Here is an example:

#include <stdio.h>

class MyClass
{
public:
virtual void Peng() {}
virtual void Boing(){}
};

int main(void)
{
MyClass ...