KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
stacktrace.c File Reference
#include <kos.h>

Typedefs

typedef int(* work_fn) (int)
 

Functions

static __noinline int do_work (int x)
 
static __noinline int call_indirect (work_fn fn, int v)
 
static __noinline int depth_recurse (int depth, int value)
 
static __noinline void test_recursive (void)
 
static __noinline void test_indirect (void)
 
int main (int argc, char **argv)
 

Typedef Documentation

◆ work_fn

typedef int(* work_fn) (int)

Function Documentation

◆ call_indirect()

static __noinline int call_indirect ( work_fn fn,
int v )
static

Referenced by test_indirect().

◆ depth_recurse()

static __noinline int depth_recurse ( int depth,
int value )
static

References arch_stk_trace(), and depth_recurse().

Referenced by depth_recurse(), and test_recursive().

◆ do_work()

static __noinline int do_work ( int x)
static

References arch_stk_trace(), and x.

Referenced by test_indirect().

◆ main()

int main ( int argc,
char ** argv )

◆ test_indirect()

static __noinline void test_indirect ( void )
static

References call_indirect(), and do_work().

Referenced by main().

◆ test_recursive()

static __noinline void test_recursive ( void )
static

References depth_recurse().

Referenced by main().