*#include* <execinfo.h>
*#include* <stdio.h>
*void* show_bt*() {*
*int* n;
*void* *buffer*[**111];*
*char* **strings*;*
n *=* backtrace*(*buffer*,* *111);*
strings *=* backtrace_symbols*(*buffer*,* n*);*
*while* *(*strings *&&* n*)* printf("%s\n"*,* strings*[*n*---*1*]);*
*}*
*void* c*()* *{* show_bt*(); }*
*void* b*()* *{* c*(); }*
*void* a*()* *{* b*(); }*
*int* main*()* *{* a*(); }*
The above code does not work on Tiny. Although works on GCC/Clang for me.
*$ tcc -versiontcc version 0.9.26 (x86-64 Linux)*
I have tried to no avail:* "-bt 100", "-g", "-rdynamic"*, also tried to
link with gcc and ld.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel